feat(deps): update Traceur 0.0.74
This commit is contained in:
@ -62,6 +62,10 @@ function prettyPrint(value) {
|
||||
}
|
||||
|
||||
if (typeof value === 'object') {
|
||||
if (value.__assertName) {
|
||||
return value.__assertName;
|
||||
}
|
||||
|
||||
if (value.map) {
|
||||
return '[' + value.map(prettyPrint).join(', ') + ']';
|
||||
}
|
||||
|
@ -361,13 +361,13 @@ describe('Traceur', function() {
|
||||
|
||||
it('should fail when a value returned', function() {
|
||||
expect(() => foo('bar'))
|
||||
.toThrowError('Expected to return an instance of voidType, got "bar"!');
|
||||
.toThrowError('Expected to return an instance of void, got "bar"!');
|
||||
});
|
||||
|
||||
|
||||
it('should fail when null returned', function() {
|
||||
expect(() => foo(null))
|
||||
.toThrowError('Expected to return an instance of voidType, got null!');
|
||||
.toThrowError('Expected to return an instance of void, got null!');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user