eslintify all test files
This commit is contained in:
parent
884bc9333d
commit
dbf0be2db5
44 changed files with 1469 additions and 1484 deletions
|
@ -1,30 +1,32 @@
|
|||
/* global Whisper */
|
||||
|
||||
'use strict';
|
||||
|
||||
describe('Database', function() {
|
||||
describe('handleDOMException', function() {
|
||||
it('handles null, still calls reject', function() {
|
||||
var called = 0;
|
||||
var reject = function() {
|
||||
describe('Database', () => {
|
||||
describe('handleDOMException', () => {
|
||||
it('handles null, still calls reject', () => {
|
||||
let called = 0;
|
||||
const reject = () => {
|
||||
called += 1;
|
||||
};
|
||||
var error = null;
|
||||
var prefix = 'something';
|
||||
const error = null;
|
||||
const prefix = 'something';
|
||||
|
||||
Whisper.Database.handleDOMException(prefix, error, reject);
|
||||
|
||||
assert.strictEqual(called, 1);
|
||||
});
|
||||
|
||||
it('handles object code and message', function() {
|
||||
var called = 0;
|
||||
var reject = function() {
|
||||
it('handles object code and message', () => {
|
||||
let called = 0;
|
||||
const reject = () => {
|
||||
called += 1;
|
||||
};
|
||||
var error = {
|
||||
const error = {
|
||||
code: 4,
|
||||
message: 'some cryptic error',
|
||||
};
|
||||
var prefix = 'something';
|
||||
const prefix = 'something';
|
||||
|
||||
Whisper.Database.handleDOMException(prefix, error, reject);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue