(chore): lint test/common files

This commit is contained in:
Blade Barringer
2015-11-19 20:27:39 -06:00
parent bdf1c82b39
commit 776faddb34
11 changed files with 1368 additions and 1351 deletions

View File

@@ -1,36 +1,30 @@
var sinon = require('sinon');
var chai = require("chai")
chai.use(require("sinon-chai"))
var expect = chai.expect
var _ = require('lodash');
let shared = require('../../common/script/index.js');
var shared = require('../../common/script/index.js');
describe('user.ops', () => {
let user;
describe('user.ops', function() {
var user;
beforeEach(function() {
beforeEach(() => {
user = {
items: {
gear: { },
special: { }
special: { },
},
achievements: { },
flags: { }
flags: { },
};
shared.wrap(user);
});
describe('readCard', function() {
it('removes card from invitation array', function() {
describe('readCard', () => {
it('removes card from invitation array', () => {
user.items.special.valentineReceived = ['Leslie'];
user.ops.readCard({ params: { cardType: 'valentine' } });
expect(user.items.special.valentineReceived).to.be.empty;
});
it('removes the first card from invitation array', function() {
it('removes the first card from invitation array', () => {
user.items.special.valentineReceived = ['Leslie', 'Vicky'];
user.ops.readCard({ params: { cardType: 'valentine' } });