mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
11 lines
360 B
JavaScript
11 lines
360 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 "from" expression:');
|
|
expect(message).to.contain("Unexpected identifier: (0 too 9)");
|
|
};
|