fixes to get tests green with karma dart

This commit is contained in:
Chirayu Krishnappa
2014-10-01 19:58:22 -07:00
parent d7d52aaef2
commit 78d758b4bb
3 changed files with 58 additions and 56 deletions

View File

@ -34,13 +34,13 @@ function expectOperatorToken(token, index, operator) {
function expectNumberToken(token, index, n) {
expectToken(token, index);
expect(token.isNumber()).toBe(true);
expect(token.toNumber()).toBe(n);
expect(token.toNumber()).toEqual(n);
}
function expectStringToken(token, index, str) {
expectToken(token, index);
expect(token.isString()).toBe(true);
expect(token.toString()).toBe(str);
expect(token.toString()).toEqual(str);
}
function expectIdentifierToken(token, index, identifier) {