web-apps/vendor/requirejs/tests/plugins/fromTextEvalError/fromTextEvalError-tests.js

24 lines
551 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
require.config({
baseUrl: requirejs.isBrowser ? './' : './plugins/fromTextEvalError',
paths: {
'refine': '../fromText/refine',
'text': '../../../../text/text'
}
});
require(['refine!a'], function (a) {
//This should not be called
}, function (err) {
var message = err + '';
doh.register(
'pluginsFromTextEvalError',
[
function pluginsFromTextEvalError(t){
t.is(-1, message.indexOf('timeout'));
}
]
);
doh.run();
});