Skip to content

Commit

Permalink
test: Add utils.booleanParser tests (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis authored Jul 8, 2024
1 parent 75a3f35 commit 09277d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/utils.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { booleanParser } from '../src/utils.js';

describe('utils', () => {
it('booleanParser', () => {
expect(booleanParser(true)).toBe(true);
expect(booleanParser('true')).toBe(true);
expect(booleanParser('1')).toBe(true);
expect(booleanParser('false')).toBe(false);
});
});

0 comments on commit 09277d6

Please sign in to comment.