Skip to content
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

browser-sync-2017 use chalk everywhere #2018

Merged
merged 4 commits into from
Feb 27, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
fix a test
  • Loading branch information
Shane Osbourne committed Feb 27, 2023
commit 41f821df28dba43fe2f04cf774df8fe764027bd6
7 changes: 5 additions & 2 deletions packages/browser-sync/test/specs/api/init.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var browserSync = require("../../../");
const chalk = require("chalk");

var assert = require("chai").assert;

Expand All @@ -13,8 +14,10 @@ describe("API: .init - don't not call init when already running.", function() {
function(err, bs) {
var spy = require("sinon").spy(console, "log");
browserSync({ server: "test/fixtures" });
var arg = spy.getCall(0).args[0];
assert.include(arg, "browserSync.create().init()");
var arg = spy.getCall(0).args;
assert.include(arg[0], chalk.yellow("You tried to start Browsersync twice!"));
assert.include(arg[1], "To create multiple instances, use");
assert.include(arg[2], chalk.cyan('browserSync.create().init()'));
console.log.restore();
bs.cleanup();
done();
Expand Down