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

Commit

Permalink
fix: assert.deepEqual to strictDeepEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Sep 27, 2020
1 parent 2be4c8d commit 4f183c1
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 71 deletions.
16 changes: 8 additions & 8 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ describe('api', function() {
data: src,
includePaths: [fixture('include-files')]
}, function(error, result) {
assert.deepEqual(result.stats.includedFiles, expected);
assert.deepStrictEqual(result.stats.includedFiles, expected);
done();
});
});
Expand Down Expand Up @@ -372,7 +372,7 @@ describe('api', function() {
}
}, function(error, result) {
assert.strictEqual(result.css.toString().trim(), expected);
assert.deepEqual(actualImportOrder, expectedImportOrder);
assert.deepStrictEqual(actualImportOrder, expectedImportOrder);
done();
});
});
Expand Down Expand Up @@ -1291,7 +1291,7 @@ describe('api', function() {
file: fixture('include-files/index.scss')
}, function(error, result) {
assert(!error);
assert.deepEqual(result.stats.includedFiles.sort(), expected.sort());
assert.deepStrictEqual(result.stats.includedFiles.sort(), expected.sort());
done();
});
});
Expand All @@ -1302,7 +1302,7 @@ describe('api', function() {
sass.render({
file: fixture('simple/index.scss')
}, function(error, result) {
assert.deepEqual(result.stats.includedFiles, [expected]);
assert.deepStrictEqual(result.stats.includedFiles, [expected]);
done();
});
});
Expand All @@ -1320,7 +1320,7 @@ describe('api', function() {
sass.render({
data: read(fixture('simple/index.scss'), 'utf8')
}, function(error, result) {
assert.deepEqual(result.stats.includedFiles, []);
assert.deepStrictEqual(result.stats.includedFiles, []);
done();
});
});
Expand Down Expand Up @@ -1558,7 +1558,7 @@ describe('api', function() {
includePaths: [fixture('include-files')]
});

assert.deepEqual(result.stats.includedFiles, expected);
assert.deepStrictEqual(result.stats.includedFiles, expected);
done();
});

Expand Down Expand Up @@ -1994,7 +1994,7 @@ describe('api', function() {
file: fixture('simple/index.scss')
});

assert.deepEqual(result.stats.includedFiles, [expected]);
assert.deepStrictEqual(result.stats.includedFiles, [expected]);
done();
});

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

assert.deepEqual(result.stats.includedFiles, []);
assert.deepStrictEqual(result.stats.includedFiles, []);
done();
});
});
Expand Down
14 changes: 7 additions & 7 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ describe('cli', function() {
setTimeout(function() {
bin.kill();
var files = fs.readdirSync(destDir);
assert.deepEqual(files, ['index.css']);
assert.deepStrictEqual(files, ['index.css']);
rimraf(destDir, done);
}, 200);
}, 500);
Expand All @@ -370,7 +370,7 @@ describe('cli', function() {
setTimeout(function () {
bin.kill();
var files = fs.readdirSync(destDir);
assert.deepEqual(files, ['foo.css', 'index.css']);
assert.deepStrictEqual(files, ['foo.css', 'index.css']);
rimraf(destDir, done);
}, 200);
}, 500);
Expand Down Expand Up @@ -487,9 +487,9 @@ describe('cli', function() {

bin.once('close', function() {
var files = fs.readdirSync(dest).sort();
assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
assert.deepStrictEqual(files, ['one.css', 'two.css', 'nested'].sort());
var nestedFiles = fs.readdirSync(path.join(dest, 'nested'));
assert.deepEqual(nestedFiles, ['three.css']);
assert.deepStrictEqual(nestedFiles, ['three.css']);
rimraf.sync(dest);
done();
});
Expand Down Expand Up @@ -534,7 +534,7 @@ describe('cli', function() {

bin.once('close', function() {
var files = fs.readdirSync(dest);
assert.deepEqual(files, ['one.css', 'two.css']);
assert.deepStrictEqual(files, ['one.css', 'two.css']);
rimraf.sync(dest);
done();
});
Expand Down Expand Up @@ -573,9 +573,9 @@ describe('cli', function() {

bin.once('close', function() {
var files = fs.readdirSync(outputDir).sort();
assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
assert.deepStrictEqual(files, ['one.css', 'two.css', 'nested'].sort());
var nestedFiles = fs.readdirSync(path.join(outputDir, 'nested'));
assert.deepEqual(nestedFiles, ['three.css']);
assert.deepStrictEqual(nestedFiles, ['three.css']);
rimraf.sync(outputDir);
fs.unlinkSync(symlink);
done();
Expand Down
6 changes: 3 additions & 3 deletions test/downloadoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('util', function() {
encoding: null,
};

assert.deepEqual(opts(), expected);
assert.deepStrictEqual(opts(), expected);
});
});

Expand All @@ -42,7 +42,7 @@ describe('util', function() {
encoding: null,
};

assert.deepEqual(opts(), expected);
assert.deepStrictEqual(opts(), expected);
});
});

Expand All @@ -67,7 +67,7 @@ describe('util', function() {
encoding: null,
};

assert.deepEqual(opts(), expected);
assert.deepStrictEqual(opts(), expected);
});
});
});
Expand Down
Loading

0 comments on commit 4f183c1

Please sign in to comment.