-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from sparksuite/fix-window-reference-error
Fix reference error to `window` object in Node.js environments
- Loading branch information
Showing
3 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// Make sure it runs in Node.js outside the context of Jest | ||
// -> Jest injects global variables into the runtime environment, which can alter behavior | ||
// require('w3c-css-validator').validateText('.foo { text-align: center; }'); | ||
console.log('Test'); | ||
require('w3c-css-validator').validateText('.foo { text-align: center; }'); |