Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent 977adb1198
commit e9594e6355
49 changed files with 2189 additions and 1198 deletions

View File

@ -17,17 +17,17 @@ test('zipObject([a], string) returns { a: s }', () => {
expect(zipObject(['a'], 'string')).toEqual({ a: 's' });
});
test('zipObject() throws an error', () => {
expect(zipObject()).toThrow();
expect(() => {zipObject();}).toThrow();
});
test('zipObject(([\'string\'], null) throws an error', () => {
expect(zipObject((['string'], null)).toThrow();
expect(() => {zipObject(['string'], null);}).toThrow();
});
test('zipObject(null, [1]) throws an error', () => {
expect(zipObject(null, [1])).toThrow();
expect(() => {zipObject(null, [1]);}).toThrow();
});
test('zipObject(\'string\') throws an error', () => {
expect(zipObject('string')).toThrow();
expect(() => {zipObject('string');}).toThrow();
});
test('zipObject(\'test\', \'string\') throws an error', () => {
expect(zipObject('test', 'string')).toThrow();
expect(() => {zipObject('test', 'string');}).toThrow();
});