Skip to content

Commit

Permalink
✅ Improve (scan) coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelWaldvogel committed Nov 19, 2021
1 parent f96e66e commit 82744e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/tests/scan.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { scan1DValue, scan2DValue } from '../scan';
import { scan1DValue, scan2DValue, scanSingleValue } from '../scan';

describe('Property value scanning', () => {
it('should escape single values', () => {
expect(scanSingleValue('A\\nB\\\\nC', null)).toStrictEqual('A\nB\\nC');
});
it('should split 1D values on commas', () => {
expect(scan1DValue('A,B', ',')).toStrictEqual(['A', 'B']);
});
Expand Down

0 comments on commit 82744e4

Please sign in to comment.