forked from thedaviddias/Front-End-Checklist
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7fdb86
commit b1a8f9e
Showing
3 changed files
with
0 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,2 @@ | ||
let expect = require('chai').expect; | ||
let assert = require('assert'); | ||
|
||
describe("Should return true", () => { | ||
it('should show true equals true', () => { | ||
assert.equal(true, true); | ||
}); | ||
}); | ||
|
||
// describe('test with mock localStorage', () => { | ||
|
||
// afterEach(() => { | ||
// localStorage.clear(); | ||
// // remove callback | ||
// localStorage.itemInsertionCallback = null; | ||
// }); | ||
|
||
// it('emulate quota exceeded error', () => { | ||
// localStorage.length.should.equal(0); | ||
// // register callback | ||
// localStorage.itemInsertionCallback = (len) => { | ||
// if (len >= 5) { | ||
// let err = new Error('Mock localStorage quota exceeded'); | ||
// err.code = 22; | ||
// throw err; | ||
// } | ||
// }; | ||
// let handled = false; | ||
// try { | ||
// for (let i = 0; i < 10; ++i) { | ||
// localStorage.setItem(i, i); | ||
// } | ||
// } catch (e) { | ||
// if (e.code == 22) { | ||
// // handle quota exceeded error | ||
// handled = true; | ||
// } | ||
// } | ||
// handled.should.be.true; | ||
// localStorage.length.should.equal(5); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
import 'babel-polyfill' | ||
|
||
// const Notation = require('../src/scripts/components/Notation'); | ||
let expect = require('chai').expect; | ||
let assert = require('assert'); | ||
|
||
|
||
describe('test with mock localStorage', () => { | ||
|
||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters