mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
11 lines
384 B
JavaScript
11 lines
384 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
exports.templateData = {};
|
|
|
|
exports.checkError = function(e) {
|
|
var message = e.toString();
|
|
expect(message).to.contain('An error occurred while trying to compile template at path');
|
|
expect(message).to.contain('Invalid "in" expression:');
|
|
expect(message).to.contain("Unexpected identifier: ({'foo': 'low', 'bar': 'high'} foo)");
|
|
};
|