Skip to content

Commit 3d3ed53

Browse files
committed
Updates test that is failing cuz of instanceof
- Something weird is happening here, instanceof is not giving the right value
1 parent 1e45ac7 commit 3d3ed53

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/AdapterLoader.spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ describe("AdapterLoader", ()=>{
3838
adapter: adapterPath
3939
});
4040

41-
expect(adapter instanceof FilesAdapter).toBe(true);
41+
expect(typeof adapter).toBe('object');
42+
expect(typeof adapter.createFile).toBe('function');
43+
expect(typeof adapter.deleteFile).toBe('function');
44+
expect(typeof adapter.getFileData).toBe('function');
45+
expect(typeof adapter.getFileLocation).toBe('function');
4246
done();
4347
});
4448

0 commit comments

Comments
 (0)