Skip to content

WIP: test failing fix. #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions test/binary-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,15 +663,15 @@ vows.describe('cleancss')
'topic': function() {
var self = this;

exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
exec('__DIRECT__=1 ./bin/cleancss test/fixtures/reset-removing.css', self.callback);
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-1.css', function () {
exec('__DIRECT__=1 ./bin/cleancss test/fixtures/reset-removing-1.css', self.callback);
});
},
'keeps the file': function () {
assert.isTrue(fs.existsSync('test/fixtures/reset-removing.css'));
assert.isTrue(fs.existsSync('test/fixtures/reset-removing-1.css'));
},
'teardown': function () {
deleteFile('test/fixtures/reset-removing.css');
deleteFile('test/fixtures/reset-removing-1.css');
}
}
})
Expand All @@ -680,12 +680,12 @@ vows.describe('cleancss')
'topic': function() {
var self = this;

exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
exec('__DIRECT__=1 ./bin/cleancss --remove-inlined-files test/fixtures/reset-removing.css', self.callback);
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-2.css', function () {
exec('__DIRECT__=1 ./bin/cleancss --remove-inlined-files test/fixtures/reset-removing-2.css', self.callback);
});
},
'removes the file': function () {
assert.isFalse(fs.existsSync('test/fixtures/reset-removing.css'));
assert.isFalse(fs.existsSync('test/fixtures/reset-removing-2.css'));
}
}
})
Expand All @@ -694,12 +694,12 @@ vows.describe('cleancss')
'topic': function() {
var self = this;

exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
exec('echo "@import \'test/fixtures/reset-removing.css\';" | ./bin/cleancss --remove-inlined-files', self.callback);
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-3.css', function () {
exec('echo "@import \'test/fixtures/reset-removing-3.css\';" | ./bin/cleancss --remove-inlined-files', self.callback);
});
},
'removes the file': function () {
assert.isFalse(fs.existsSync('test/fixtures/reset-removing.css'));
assert.isFalse(fs.existsSync('test/fixtures/reset-removing-3.css'));
}
}
})
Expand Down