Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
deerawan committed Jul 26, 2019
1 parent 4bcf727 commit 27e39cf
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions test/dash.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ suite('Dash Tests', () => {
const dash = new Dash('darwin', dashOptionExactDocsetEnabled);
const uri = dash.getCommand('size', ['css', 'less']);

assert.equal(uri, 'open -g "dash-plugin://query=size&keys=exact:css,exact:less"');
assert.equal(
uri,
'open -g "dash-plugin://query=size&keys=exact:css,exact:less"'
);
});

test('Get command with no keys for macOS', () => {
Expand Down Expand Up @@ -39,7 +42,10 @@ suite('Dash Tests', () => {
const dash = new Dash('linux', dashOptionExactDocsetEnabled);
const uri = dash.getCommand('size', ['css', 'less']);

assert.equal(uri, 'zeal "dash-plugin://query=size&keys=exact:css,exact:less"');
assert.equal(
uri,
'zeal "dash-plugin://query=size&keys=exact:css,exact:less"'
);
});

test('Get command with no keys for Linux', () => {
Expand All @@ -49,20 +55,6 @@ suite('Dash Tests', () => {
assert.equal(uri, 'zeal "dash-plugin://query=size"');
});

test('Get keys with exist docset', () => {
const dash = new Dash('darwin', dashOptionExactDocsetEnabled);
const keys = dash.getKeys(['css', 'less']);

assert.equal(keys, 'exact:css,exact:less');
});

test('Get keys with empty docset', () => {
const dash = new Dash('darwin', dashOptionExactDocsetEnabled);
const keys = dash.getKeys([]);

assert.equal(keys, '');
});

test('Exact docset disabled', () => {
const dashOptionExactDocsetDisabled: DashOption = { exactDocset: false };

Expand Down

0 comments on commit 27e39cf

Please sign in to comment.