web-apps/vendor/requirejs/tests/plugins/fromTextEvalError/fromTextEvalError-tests.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

24 lines
551 B
JavaScript

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();
});