Skip to content

Commit

Permalink
Run prettier on source
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Sep 16, 2017
1 parent 9707090 commit 2ebd59f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ describe('storage', () =>
// clear
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-clear
test('storage.clear', () => {
const KEY = 'foo', VALUE = 'bar';
const KEY = 'foo',
VALUE = 'bar';
storage.setItem(KEY, VALUE);
expect(storage.setItem).toHaveBeenLastCalledWith(KEY, VALUE);
expect(storage.__STORE__[KEY]).toBe(VALUE);
Expand All @@ -29,7 +30,9 @@ describe('storage', () =>
// setItem
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-setitem
test('storage.setItem', () => {
const KEY = 'foo', VALUE1 = 'bar', VALUE2 = 'baz';
const KEY = 'foo',
VALUE1 = 'bar',
VALUE2 = 'baz';
storage.setItem(KEY, VALUE1);
expect(storage.setItem).toHaveBeenLastCalledWith(KEY, VALUE1);
expect(storage.__STORE__[KEY]).toBe(VALUE1);
Expand Down Expand Up @@ -85,7 +88,9 @@ describe('storage', () =>
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-length
// length is not mocked
test('storage set and remove', () => {
const KEY1 = 'foo', VALUE = 'bar', KEY2 = 'baz';
const KEY1 = 'foo',
VALUE = 'bar',
KEY2 = 'baz';
expect(storage.length).toBe(0);
storage.setItem(KEY1, VALUE);
expect(storage.setItem).toHaveBeenLastCalledWith(KEY1, VALUE);
Expand All @@ -103,7 +108,8 @@ describe('storage', () =>
// key
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-key
test('storage.key', () => {
const KEY = 'foo', VALUE = 'bar';
const KEY = 'foo',
VALUE = 'bar';
storage.setItem(KEY, VALUE);
expect(storage.getItem(KEY)).toBe(VALUE);
expect(storage.key(0)).toBe(KEY);
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default {
output: {
file: 'dist/setup.js',
format: 'cjs',
sourcemap: true
}
sourcemap: true,
},
};

0 comments on commit 2ebd59f

Please sign in to comment.