-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(builtin): add missing testing for browserify vendored binary
- Loading branch information
Showing
5 changed files
with
15,494 additions
and
12,198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const fs = require('fs'); | ||
const mainFile = 'build_bazel_rules_nodejs/third_party/github.com/browserify/browserify/index.min.js'; | ||
|
||
describe('our bundled, vendored browserify binary', () => { | ||
it('should preserve licenses', () => { | ||
const idxFile = fs.readFileSync(require.resolve(mainFile), {encoding: 'utf-8'}); | ||
expect(idxFile).toContain('Copyright Joyent'); | ||
expect(idxFile).toMatch(/Copyright \d+ Mozilla/); | ||
expect(idxFile).toContain('Feross Aboukhadijeh'); | ||
}); | ||
it('should work', () => { | ||
const minimistUmd = require('build_bazel_rules_nodejs/internal/npm_install/test/some-package-name.umd.js'); | ||
const result = minimistUmd('h'); | ||
expect(result._[0]).toBe('h'); | ||
}); | ||
}); |
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
Oops, something went wrong.