Skip to content

Commit

Permalink
build: pass new required parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Aug 9, 2018
1 parent 52fd210 commit a18f3cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/picker/emoji-frequency.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ describe('EmojiFrequently', () => {
it(
'should get default',
inject([EmojiFrequentlyService], (ef: EmojiFrequentlyService) => {
const defaults = ef.get(ef.DEFAULTS.length);
const defaults = ef.get(ef.DEFAULTS.length, 4);
expect(defaults.length).toEqual(ef.DEFAULTS.length);
}),
);

it(
'should get shorter default',
inject([EmojiFrequentlyService], (ef: EmojiFrequentlyService) => {
const defaults = ef.get(8);
const defaults = ef.get(8, 4);
expect(defaults.length).toEqual(8);
}),
);
Expand All @@ -35,9 +35,9 @@ describe('EmojiFrequently', () => {
[EmojiFrequentlyService, EmojiService],
(ef: EmojiFrequentlyService, es: EmojiService) => {
const pineapple = es.getData('pineapple')!;
ef.get(8);
ef.get(8, 4);
ef.add(pineapple);
const result = ef.get(8);
const result = ef.get(8, 4);
expect(result.length).toEqual(9);
},
),
Expand Down

0 comments on commit a18f3cd

Please sign in to comment.