Tests: Replace Syn with a local version that works in IE9 and IE10.
[mootools.git] / Tests / Plugins / syn / index.js
blob2c6af0f18bb71f40c8080d26010e230e01e50c46
1 var path = require('path');
3 var createPattern = function(path) {
4         return {pattern: path, included: true, served: true, watched: false};
5 };
7 //var initSyn = function(files) {
8 //      files.unshift(createPattern(path.join(__dirname, 'post-amd.js')));
9 //      files.unshift(createPattern(path.resolve(require.resolve('syn'), '../../syn.js')));
10 //      files.unshift(createPattern(path.join(__dirname, 'pre-amd.js')));
11 //};
13 var initSyn = function(files) {
14         // Local version that works in IE9 and IE10.
15         files.unshift(createPattern(path.resolve('Tests/Utilities/syn.js')));
18 initSyn.$inject = ['config.files'];
20 module.exports = {
21         'framework:syn': ['factory', initSyn]