Browse Source

[tests] Added spec for Fuse#else

master
Muthu Kumar 7 years ago
parent
commit
c056ae3d2f
  1. 10
      spec/Fuse-spec.js

10
spec/Fuse-spec.js

@ -84,4 +84,14 @@ describe("Fuse", () => {
expect(result.resolve()).toBe(true);
});
it(`Should return 'default'`, () => {
const a = 'UnexpectedString';
const result = new Fuse(a)
.is('ExpectedString', () => true)
.else(() => 'default');
expect(result.resolve()).toBe('default');
});
});

Loading…
Cancel
Save