Skip to content

Commit

Permalink
Fixed debug-test matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Eubank committed Jan 26, 2016
1 parent 733bea2 commit 5450d19
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/debug-test.js
Expand Up @@ -20,7 +20,8 @@ describe('Debug', function () {
}
catch (e) {
is(e.stack.indexOf('require'), -1);
is.in(e.message, '[Ltl] Failed to compile template. Unexpected');
is.in(e.message, '[Ltl] Failed to compile template');
is.in(e.message, 'Unexpected token');
done();
}
});
Expand All @@ -30,7 +31,8 @@ describe('Debug', function () {
ltl.compile('p ={omg!}', {enableDebug: true});
}
catch (e) {
is.in(e.message, '[Ltl] Failed to compile template. Unexpected');
is.in(e.message, '[Ltl] Failed to compile template');
is.in(e.message, 'Unexpected token');
done();
}
});
Expand All @@ -40,13 +42,15 @@ describe('Debug', function () {
ltl.compile('p ={omg!}', {name: 'wtf'});
}
catch (e) {
is.in(e.message, '[Ltl] Failed to compile "wtf". Unexpected');
is.in(e.message, '[Ltl] Failed to compile');
is.in(e.message, 'Unexpected token');
}
try {
ltl.compile('p ={omg!}', {name: 'wtf', enableDebug: true});
}
catch (e) {
is.in(e.message, '[Ltl] Failed to compile "wtf". Unexpected');
is.in(e.message, '[Ltl] Failed to compile');
is.in(e.message, 'Unexpected token');
done();
}
});
Expand Down

0 comments on commit 5450d19

Please sign in to comment.