Skip to content

Commit 9858d0b

Browse files
committed
Revert "run lint"
This reverts commit c4ce537
1 parent c4ce537 commit 9858d0b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/resolve.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const preferRelativeResolve = resolve.create({
2525
});
2626

2727
function testResolve(name, context, moduleName, result) {
28-
describe(name, function() {
29-
it("should resolve sync correctly", function() {
28+
describe(name, function () {
29+
it("should resolve sync correctly", function () {
3030
var filename = resolve.sync(context, moduleName);
3131
should.exist(filename);
3232
filename.should.equal(result);
3333
});
34-
it("should resolve async correctly", function(done) {
35-
resolve(context, moduleName, function(err, filename) {
34+
it("should resolve async correctly", function (done) {
35+
resolve(context, moduleName, function (err, filename) {
3636
if (err) return done(err);
3737
should.exist(filename);
3838
filename.should.equal(result);
@@ -43,23 +43,23 @@ function testResolve(name, context, moduleName, result) {
4343
}
4444

4545
function testResolveContext(name, context, moduleName, result) {
46-
describe(name, function() {
47-
it("should resolve async correctly", function(done) {
48-
asyncContextResolve(context, moduleName, function(err, filename) {
46+
describe(name, function () {
47+
it("should resolve async correctly", function (done) {
48+
asyncContextResolve(context, moduleName, function (err, filename) {
4949
if (err) done(err);
5050
should.exist(filename);
5151
filename.should.equal(result);
5252
done();
5353
});
5454
});
55-
it("should resolve sync correctly", function() {
55+
it("should resolve sync correctly", function () {
5656
var filename = syncContextResolve(context, moduleName);
5757
should.exist(filename);
5858
filename.should.equal(result);
5959
});
6060
});
6161
}
62-
describe("resolve", function() {
62+
describe("resolve", function () {
6363
testResolve(
6464
"absolute path",
6565
fixtures,
@@ -239,13 +239,13 @@ describe("resolve", function() {
239239
path.join(fixtures, "main-field-self2", "index.js")
240240
);
241241

242-
it("should correctly resolve", function(done) {
242+
it("should correctly resolve", function (done) {
243243
const issue238 = path.resolve(fixtures, "issue-238");
244244

245245
issue238Resolve(
246246
path.resolve(issue238, "./src/common"),
247247
"config/myObjectFile",
248-
function(err, filename) {
248+
function (err, filename) {
249249
if (err) done(err);
250250
should.exist(filename);
251251
filename.should.equal(
@@ -256,17 +256,17 @@ describe("resolve", function() {
256256
);
257257
});
258258

259-
it("should correctly resolve with preferRelative", function(done) {
260-
preferRelativeResolve(fixtures, "main1.js", function(err, filename) {
259+
it("should correctly resolve with preferRelative", function (done) {
260+
preferRelativeResolve(fixtures, "main1.js", function (err, filename) {
261261
if (err) done(err);
262262
should.exist(filename);
263263
filename.should.equal(path.join(fixtures, "main1.js"));
264264
done();
265265
});
266266
});
267267

268-
it("should correctly resolve with preferRelative", function(done) {
269-
preferRelativeResolve(fixtures, "m1/a.js", function(err, filename) {
268+
it("should correctly resolve with preferRelative", function (done) {
269+
preferRelativeResolve(fixtures, "m1/a.js", function (err, filename) {
270270
if (err) done(err);
271271
should.exist(filename);
272272
filename.should.equal(path.join(fixtures, "node_modules", "m1", "a.js"));

0 commit comments

Comments
 (0)