Tests for pluralize, toArray, validateExtensionManifest, and parseFilter (#8276)

* pluralize tests passing, 100% coverage

* toArray tests passing, 100% coverage

* validate-extension-manifest tests passing, 100% coverage

* parse-filter tests passing, coverage 100%

* covered line 16
This commit is contained in:
Jay Cammarano
2021-09-23 18:11:04 -04:00
committed by GitHub
parent da16d69d74
commit bcb0ddc44b
4 changed files with 251 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { toArray } from '.';
describe('toArray', () => {
it('takes in a string and returns an array', () => {
expect(toArray('1,2,3,4,5')).toStrictEqual(['1', '2', '3', '4', '5']);
});
it('when passed an array returns the array', () => {
expect(toArray(['1', '2', '3', '4', '5'])).toStrictEqual(['1', '2', '3', '4', '5']);
});
});