Skip to content

Commit

Permalink
fix comments (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Feb 17, 2021
1 parent 9083b9f commit 3bb2173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bundler/bundler_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ func TestRequirePropertyAccessCommonJS(t *testing.T) {
default_suite.expectBundled(t, bundled{
files: map[string]string{
"/entry.js": `
// These shouldn't warn
// These shouldn't warn since the format is CommonJS
console.log(Object.keys(require.cache))
console.log(Object.keys(require.extensions))
delete require.cache['fs']
Expand All @@ -1209,7 +1209,7 @@ func TestRequirePropertyAccessES6(t *testing.T) {
default_suite.expectBundled(t, bundled{
files: map[string]string{
"/entry.js": `
// These shouldn't warn
// These should warn since the format is ESM
console.log(Object.keys(require.cache))
console.log(Object.keys(require.extensions))
delete require.cache['fs']
Expand Down

0 comments on commit 3bb2173

Please sign in to comment.