Skip to content

Commit

Permalink
Update file_content.mjs
Browse files Browse the repository at this point in the history
Added before and after hooks
  • Loading branch information
RishikaReddy123 authored Jan 6, 2025
1 parent e5a7112 commit 4bbbc02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/file_content.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ function runTests() {
const dir = dirs.dist;

describe(`Test if the files from the "${dir}" directory have the expected content`, () => {

before(() => {
console.log('Starting tests...');
});

after(() => {
console.log('Tests complete.');
});

it('"style.css" should contain a custom banner', function (done) {
const string = `/*! HTML5 Boilerplate v${pkg.version} | ${pkg.license} License | ${pkg.homepage} */\n`;
checkString(path.resolve(dir, 'css/style.css'), string, done);
Expand Down

0 comments on commit 4bbbc02

Please sign in to comment.