Skip to content

Commit

Permalink
fix: fixed tests (hard-code validator name to global browser scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 12, 2024
1 parent e3b9a07 commit ecd027e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ rollup({
.then((bundle) =>
bundle.write({
file: "validator.js",
name: pkg.name,
// name: pkg.name,
// NOTE: hard-coded below due to @forwardemail/validator
// otherwise tests won't pass in `test/validators.test.js`
// it('should bind validator to the window if no module loaders are available', () => {
//
name: 'validator',
format: "umd",
banner: `/*!\n${String(fs.readFileSync("./LICENSE"))
.trim()
Expand Down

0 comments on commit ecd027e

Please sign in to comment.