Skip to content

Commit

Permalink
Remove draft mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Nov 15, 2017
1 parent d7fdb86 commit b1a8f9e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
40 changes: 0 additions & 40 deletions test/localstorage.test.js
@@ -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);
// });
// });
9 changes: 0 additions & 9 deletions test/notation.test.js
@@ -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', () => {

})

14 changes: 0 additions & 14 deletions test/reports.test.js
Expand Up @@ -5,17 +5,3 @@ const should = chai.should(); // Using Should style

const sinon = require('sinon');
const EventEmitter = require('events').EventEmitter;


describe('Print', function() {
it('Should add event listener to the print button', function() {
var spy = sinon.spy()
var emitter = new EventEmitter();


// emitter.on('.js-reset-all', spy);
// emitter.emit('foo');
// spy.called.should.equal.true;
});
});

0 comments on commit b1a8f9e

Please sign in to comment.