Skip to content

Commit eaa1591

Browse files
committed
[Tests] switch some files to unix line endings
1 parent 683d3a5 commit eaa1591

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
var path = require('path')
2-
3-
exports.resolveImport = function (modulePath, sourceFile, config) {
4-
var sourceFileName = path.basename(sourceFile)
5-
if (sourceFileName === 'foo.js') {
6-
return path.join(__dirname, 'bar.jsx')
7-
}
8-
if (sourceFileName === 'exception.js') {
9-
throw new Error('foo-bar-resolver-v1 resolveImport test exception')
10-
}
11-
return undefined;
12-
}
1+
var path = require('path')
2+
3+
exports.resolveImport = function (modulePath, sourceFile, config) {
4+
var sourceFileName = path.basename(sourceFile)
5+
if (sourceFileName === 'foo.js') {
6+
return path.join(__dirname, 'bar.jsx')
7+
}
8+
if (sourceFileName === 'exception.js') {
9+
throw new Error('foo-bar-resolver-v1 resolveImport test exception')
10+
}
11+
return undefined;
12+
}

tests/files/foo-bar-resolver-v1.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
var path = require('path')
2-
3-
exports.resolveImport = function (modulePath, sourceFile, config) {
4-
var sourceFileName = path.basename(sourceFile)
5-
if (sourceFileName === 'foo.js') {
6-
return path.join(__dirname, 'bar.jsx');
7-
}
8-
if (sourceFileName === 'exception.js') {
9-
throw new Error('foo-bar-resolver-v1 resolveImport test exception');
10-
}
11-
return undefined;
12-
};
13-
14-
exports.interfaceVersion = 1;
1+
var path = require('path')
2+
3+
exports.resolveImport = function (modulePath, sourceFile, config) {
4+
var sourceFileName = path.basename(sourceFile)
5+
if (sourceFileName === 'foo.js') {
6+
return path.join(__dirname, 'bar.jsx');
7+
}
8+
if (sourceFileName === 'exception.js') {
9+
throw new Error('foo-bar-resolver-v1 resolveImport test exception');
10+
}
11+
return undefined;
12+
};
13+
14+
exports.interfaceVersion = 1;

tests/files/foo-bar-resolver-v2.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
var path = require('path')
2-
3-
exports.resolve = function (modulePath, sourceFile, config) {
4-
var sourceFileName = path.basename(sourceFile)
5-
if (sourceFileName === 'foo.js') {
6-
return { found: true, path: path.join(__dirname, 'bar.jsx') }
7-
}
8-
if (sourceFileName === 'exception.js') {
9-
throw new Error('foo-bar-resolver-v2 resolve test exception')
10-
}
11-
return { found: false };
12-
};
13-
14-
exports.interfaceVersion = 2;
1+
var path = require('path')
2+
3+
exports.resolve = function (modulePath, sourceFile, config) {
4+
var sourceFileName = path.basename(sourceFile)
5+
if (sourceFileName === 'foo.js') {
6+
return { found: true, path: path.join(__dirname, 'bar.jsx') }
7+
}
8+
if (sourceFileName === 'exception.js') {
9+
throw new Error('foo-bar-resolver-v2 resolve test exception')
10+
}
11+
return { found: false };
12+
};
13+
14+
exports.interfaceVersion = 2;

0 commit comments

Comments
 (0)