Skip to content

Commit

Permalink
Make all files prettier
Browse files Browse the repository at this point in the history
* Run prettier check during test script

* Make all files prettier
  • Loading branch information
Mark authored and markcellus committed Aug 18, 2022
1 parent 49e5d05 commit bfc4b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bfc4b75

Please sign in to comment.