Client: Guild page and mix changes (#8533)

* update deps

* add guilds page

* improve karma conf, add tests for actions
This commit is contained in:
Matteo Pagliazzi
2017-03-05 19:07:48 +01:00
committed by GitHub
parent 03b3e79ea0
commit 0a35e63897
19 changed files with 282 additions and 227 deletions

View File

@@ -0,0 +1,25 @@
import deepFreeze from 'client/libs/deepFreeze';
describe('deepFreeze', () => {
it('works as expected', () => {
let obj = {
a: 1,
b () {
return this.a;
},
nested: {
c: 2,
nestedTwice: {
d: 1,
},
},
};
let result = deepFreeze(obj);
expect(result).to.equal(obj);
expect(Object.isFrozen(obj)).to.equal(true);
expect(Object.isFrozen(obj.nested)).to.equal(true);
expect(Object.isFrozen(obj.nested.nestedTwice)).to.equal(true);
});
});