Skip to content

Commit

Permalink
Test bookmarks (#63)
Browse files Browse the repository at this point in the history
* test(bookmarks): test that bookmarks returns value without options supplied
* fix(semi): Fix missing semi colon
  • Loading branch information
adnasa committed Sep 26, 2016
1 parent 1fbfa2f commit 75a0c9d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion __tests__/resources/plugins/bookmarks/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import m from '../../../../resources/plugins/bookmarks';

describe('retrieve bookmarks', () => {
it('should return something', async () => {
it('should return something with options supplied', async () => {
const data = await m.execute('GitHub', { size: 20 });
if (process.platform === 'darwin') {
expect(data).toBeTruthy();
Expand All @@ -10,4 +10,14 @@ describe('retrieve bookmarks', () => {
expect(data).toEqual([]);
}
});

it('should return something with missing options', async () => {
const data = await m.execute('Github')
if (process.platform === 'darwin') {
expect(data).toBeTruthy();
expect(data.items instanceof Array).toBeTruthy();
} else {
expect(data).toEqual([]);
}
});
});

0 comments on commit 75a0c9d

Please sign in to comment.