diff --git a/index.tests.ts b/index.tests.ts index 947a0d0..f9d7821 100644 --- a/index.tests.ts +++ b/index.tests.ts @@ -22,7 +22,7 @@ describe('Cookie Store', () => { const result = await window.cookieStore.get(foo); expect(result).to.deep.equal({ name: foo, value: bar }); }); - + it('returns undefined when no cookie is found', async () => { const foo = 'foo'; const bar = 'bar'; @@ -52,7 +52,7 @@ describe('Cookie Store', () => { const result = await window.cookieStore.getAll(bar); expect(result).to.deep.equal([{ name: bar, value: baz }]); }); - + it('returns an empty when no matching cookies are found', async () => { const foo = 'foo'; const bar = 'bar'; diff --git a/package.json b/package.json index 481e72b..2ec54b5 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,9 @@ "node": ">= 10.16" }, "scripts": { - "test": "npm run test:ts && eslint '**/*.ts'", + "test": "npm run test:ts && eslint '**/*.ts' && npm run prettier", "test:ts": "karma start karma.conf.js --single-run", + "prettier": "prettier --check '**/*'", "preversion": "npm test", "banner": "banner-cli index.js", "build": "tsc",