Skip to content

Commit

Permalink
Fix mocha test
Browse files Browse the repository at this point in the history
  • Loading branch information
raucao committed Jul 22, 2024
1 parent f6ec2a3 commit 9625dcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/remotestorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ export class RemoteStorage {
*/
access: Access;
/**
* @ignore
*/
sync: Sync;
/**
Expand Down
9 changes: 6 additions & 3 deletions test/unit/dropbox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import chaiAsPromised from 'chai-as-promised';
import sinon from 'sinon';
import fetchMock from 'fetch-mock';
import config from "../../src/config";
import RemoteStorage from '../../src/remotestorage';
import Dropbox from "../../src/dropbox";

import InMemoryStorage from '../../src/inmemorystorage';
import RemoteStorage from '../../src/remotestorage';
import Sync from '../../src/sync';

const SETTINGS_KEY = 'remotestorage:dropbox';
const ACCOUNT_URL = 'https://api.dropboxapi.com/2/users/get_current_account';
Expand Down Expand Up @@ -205,7 +206,9 @@ describe('Dropbox backend', () => {
const rs2 = new RemoteStorage();
rs2.setApiKeys({dropbox: 'swcj8jbc9i1jf1m'}); // an app would do this
rs2.backend = 'dropbox';
rs2.sync = { sync: sinon.spy() };
rs2.local = new InMemoryStorage();
rs2.sync = new Sync(rs2);
rs2.sync.sync = sinon.spy();
Dropbox._rs_init(rs2);

const fetchDeltaSpy = sandbox.spy(rs2.dropbox, 'fetchDelta');
Expand Down

0 comments on commit 9625dcb

Please sign in to comment.