pixiv.moe
Version:
A pinterest-style layout site, shows illusts on [pixiv.net](http://pixiv.net) order by popularity. Written with React.
22 lines (18 loc) • 554 B
text/typescript
import { expect } from 'chai';
import Storage from '@/utils/Storage';
describe('Storage', () => {
it('set and get storage should work', () => {
Storage.set('name', 'value');
expect(Storage.get('name')).to.equal('value');
});
it('delete storage should work', () => {
Storage.set('name', 'value');
Storage.remove('name');
expect(Storage.get('name')).to.equal(null);
});
it('clear storage should work', () => {
Storage.set('name', 'value');
Storage.clear();
expect(Storage.get('name')).to.equal(null);
});
});