Skip to content

Commit

Permalink
updated test files to expect sass
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuang612 committed Sep 12, 2021
1 parent d125e4a commit 0f368b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cli/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ exports.handler = argv => {
const destdir = argv.path;
const srcdir = path.join(__dirname, '..', '..');
fs.mkdirSync(destdir, {recursive: true});
const css = fs.readFileSync(path.join(srcdir, 'mocha.css'));
const css = fs.readFileSync(path.join(srcdir, 'mocha.sass'));
const js = fs.readFileSync(path.join(srcdir, 'mocha.js'));
const tmpl = fs.readFileSync(
path.join(srcdir, 'lib', 'browser', 'template.html')
);
fs.writeFileSync(path.join(destdir, 'mocha.css'), css);
fs.writeFileSync(path.join(destdir, 'mocha.sass'), css);
fs.writeFileSync(path.join(destdir, 'mocha.js'), js);
fs.writeFileSync(path.join(destdir, 'tests.spec.js'), '');
fs.writeFileSync(path.join(destdir, 'index.html'), tmpl);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"assets/growl/*.png",
"lib/**/*.{js,html,json}",
"index.js",
"mocha.css",
"mocha.sass",
"mocha.js",
"mocha.js.map",
"mocha-es2018.js",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/init.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('init command', function() {
return done(err);
}
expect(result, 'to have succeeded');
expect(fs.existsSync(path.join(tmpdir, 'mocha.css')), 'to be true');
expect(fs.existsSync(path.join(tmpdir, 'mocha.sass')), 'to be true');
expect(fs.existsSync(path.join(tmpdir, 'mocha.js')), 'to be true');
expect(fs.existsSync(path.join(tmpdir, 'tests.spec.js')), 'to be true');
expect(fs.existsSync(path.join(tmpdir, 'index.html')), 'to be true');
Expand Down

0 comments on commit 0f368b3

Please sign in to comment.