Skip to content

Commit

Permalink
Add tests for export object assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmarek committed Apr 14, 2017
1 parent 6f19984 commit d8d0bff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/src/rules/no-import-module-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ ruleTester.run('no-import-module-exports', rule, {
export default thing
`,
}),
test({
code: `
const thing = require('thing')
exports.foo = bar
`,
}),
test({
code: `
import foo from 'path';
Expand Down Expand Up @@ -75,6 +81,13 @@ ruleTester.run('no-import-module-exports', rule, {
`,
errors: [error],
}),
test({
code: `
import thing from 'other-thing'
exports.foo = bar
`,
errors: [error],
}),
test({
code: `
import foo from 'path';
Expand Down

0 comments on commit d8d0bff

Please sign in to comment.