Skip to content

Instantly share code, notes, and snippets.

@hideack
Created April 10, 2021 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideack/9d9955295f080f82712af7aa38f7173e to your computer and use it in GitHub Desktop.
Save hideack/9d9955295f080f82712af7aa38f7173e to your computer and use it in GitHub Desktop.
sample.js
it("キーワード指定された文字が赤太文字となること", () => {
let expectedText = "Hello \u001b[31m\u001b[1mhideack\u001b[22m\u001b[39m. Have a \u001b[31m\u001b[1mnice\u001b[22m\u001b[39m day";
assert.equal(util.decolateText("Hello hideack. Have a nice day"), expectedText, "hideackとniceという単語が赤太文字になっている");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment