Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 4f183c1

Browse files
committed
fix: assert.deepEqual to strictDeepEqual
1 parent 2be4c8d commit 4f183c1

File tree

4 files changed

+71
-71
lines changed

4 files changed

+71
-71
lines changed

test/api.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ describe('api', function() {
256256
data: src,
257257
includePaths: [fixture('include-files')]
258258
}, function(error, result) {
259-
assert.deepEqual(result.stats.includedFiles, expected);
259+
assert.deepStrictEqual(result.stats.includedFiles, expected);
260260
done();
261261
});
262262
});
@@ -372,7 +372,7 @@ describe('api', function() {
372372
}
373373
}, function(error, result) {
374374
assert.strictEqual(result.css.toString().trim(), expected);
375-
assert.deepEqual(actualImportOrder, expectedImportOrder);
375+
assert.deepStrictEqual(actualImportOrder, expectedImportOrder);
376376
done();
377377
});
378378
});
@@ -1291,7 +1291,7 @@ describe('api', function() {
12911291
file: fixture('include-files/index.scss')
12921292
}, function(error, result) {
12931293
assert(!error);
1294-
assert.deepEqual(result.stats.includedFiles.sort(), expected.sort());
1294+
assert.deepStrictEqual(result.stats.includedFiles.sort(), expected.sort());
12951295
done();
12961296
});
12971297
});
@@ -1302,7 +1302,7 @@ describe('api', function() {
13021302
sass.render({
13031303
file: fixture('simple/index.scss')
13041304
}, function(error, result) {
1305-
assert.deepEqual(result.stats.includedFiles, [expected]);
1305+
assert.deepStrictEqual(result.stats.includedFiles, [expected]);
13061306
done();
13071307
});
13081308
});
@@ -1320,7 +1320,7 @@ describe('api', function() {
13201320
sass.render({
13211321
data: read(fixture('simple/index.scss'), 'utf8')
13221322
}, function(error, result) {
1323-
assert.deepEqual(result.stats.includedFiles, []);
1323+
assert.deepStrictEqual(result.stats.includedFiles, []);
13241324
done();
13251325
});
13261326
});
@@ -1558,7 +1558,7 @@ describe('api', function() {
15581558
includePaths: [fixture('include-files')]
15591559
});
15601560

1561-
assert.deepEqual(result.stats.includedFiles, expected);
1561+
assert.deepStrictEqual(result.stats.includedFiles, expected);
15621562
done();
15631563
});
15641564

@@ -1994,7 +1994,7 @@ describe('api', function() {
19941994
file: fixture('simple/index.scss')
19951995
});
19961996

1997-
assert.deepEqual(result.stats.includedFiles, [expected]);
1997+
assert.deepStrictEqual(result.stats.includedFiles, [expected]);
19981998
done();
19991999
});
20002000

@@ -2012,7 +2012,7 @@ describe('api', function() {
20122012
data: read(fixture('simple/index.scss'), 'utf8')
20132013
});
20142014

2015-
assert.deepEqual(result.stats.includedFiles, []);
2015+
assert.deepStrictEqual(result.stats.includedFiles, []);
20162016
done();
20172017
});
20182018
});

test/cli.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ describe('cli', function() {
346346
setTimeout(function() {
347347
bin.kill();
348348
var files = fs.readdirSync(destDir);
349-
assert.deepEqual(files, ['index.css']);
349+
assert.deepStrictEqual(files, ['index.css']);
350350
rimraf(destDir, done);
351351
}, 200);
352352
}, 500);
@@ -370,7 +370,7 @@ describe('cli', function() {
370370
setTimeout(function () {
371371
bin.kill();
372372
var files = fs.readdirSync(destDir);
373-
assert.deepEqual(files, ['foo.css', 'index.css']);
373+
assert.deepStrictEqual(files, ['foo.css', 'index.css']);
374374
rimraf(destDir, done);
375375
}, 200);
376376
}, 500);
@@ -487,9 +487,9 @@ describe('cli', function() {
487487

488488
bin.once('close', function() {
489489
var files = fs.readdirSync(dest).sort();
490-
assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
490+
assert.deepStrictEqual(files, ['one.css', 'two.css', 'nested'].sort());
491491
var nestedFiles = fs.readdirSync(path.join(dest, 'nested'));
492-
assert.deepEqual(nestedFiles, ['three.css']);
492+
assert.deepStrictEqual(nestedFiles, ['three.css']);
493493
rimraf.sync(dest);
494494
done();
495495
});
@@ -534,7 +534,7 @@ describe('cli', function() {
534534

535535
bin.once('close', function() {
536536
var files = fs.readdirSync(dest);
537-
assert.deepEqual(files, ['one.css', 'two.css']);
537+
assert.deepStrictEqual(files, ['one.css', 'two.css']);
538538
rimraf.sync(dest);
539539
done();
540540
});
@@ -573,9 +573,9 @@ describe('cli', function() {
573573

574574
bin.once('close', function() {
575575
var files = fs.readdirSync(outputDir).sort();
576-
assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
576+
assert.deepStrictEqual(files, ['one.css', 'two.css', 'nested'].sort());
577577
var nestedFiles = fs.readdirSync(path.join(outputDir, 'nested'));
578-
assert.deepEqual(nestedFiles, ['three.css']);
578+
assert.deepStrictEqual(nestedFiles, ['three.css']);
579579
rimraf.sync(outputDir);
580580
fs.unlinkSync(symlink);
581581
done();

test/downloadoptions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('util', function() {
1616
encoding: null,
1717
};
1818

19-
assert.deepEqual(opts(), expected);
19+
assert.deepStrictEqual(opts(), expected);
2020
});
2121
});
2222

@@ -42,7 +42,7 @@ describe('util', function() {
4242
encoding: null,
4343
};
4444

45-
assert.deepEqual(opts(), expected);
45+
assert.deepStrictEqual(opts(), expected);
4646
});
4747
});
4848

@@ -67,7 +67,7 @@ describe('util', function() {
6767
encoding: null,
6868
};
6969

70-
assert.deepEqual(opts(), expected);
70+
assert.deepStrictEqual(opts(), expected);
7171
});
7272
});
7373
});

0 commit comments

Comments
 (0)