Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent a78f5db260
commit 026c65a5e6
151 changed files with 753 additions and 373 deletions

View File

@ -10,7 +10,11 @@ const functions = require('./functions.js');
this.b = () => 2;
}
Foo.prototype.c = () => 3;
t.deepEqual(functions(new Foo()), ['a', 'b'], 'Returns own methods');
t.deepEqual(functions(new Foo(), true), ['a', 'b', 'c'], 'Returns own and inherited methods');
test('Returns own methods', () => {
expect(functions(new Foo()), ['a', 'b']).toEqual()
});
test('Returns own and inherited methods', () => {
expect(functions(new Foo(), true), ['a', 'b', 'c']).toEqual()
});