Skip to content

Add tests for ModuleDependencyError#3982

Merged
TheLarkInn merged 1 commit intowebpack:masterfrom
alistairjcbrown:add-moduledependencyerror-tests
Jan 21, 2017
Merged

Add tests for ModuleDependencyError#3982
TheLarkInn merged 1 commit intowebpack:masterfrom
alistairjcbrown:add-moduledependencyerror-tests

Conversation

@alistairjcbrown
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Add tests for ModuleDependencyError

Did you add tests for your changes?

This PR is only tests

If relevant, link to documentation update:

N/A

Summary

Based on the coveralls report, the ModuleDependencyError file has 20% test coverage. There is no ModuleDependencyError specific test file - this is added in this PR and aims to achieve 100% test coverage.
https://coveralls.io/builds/9689291/source?filename=lib%2FModuleDependencyError.js

Does this PR introduce a breaking change?

No

Other information

None

@alistairjcbrown alistairjcbrown force-pushed the add-moduledependencyerror-tests branch from 874f9a6 to bc95173 Compare January 16, 2017 22:26
Comment thread test/ModuleDependencyError.test.js Outdated
});

it("has a details property", function() {
env.moduleDependencyError.details.should.containEql("test/ModuleDependencyError.test.js:");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not windows safe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sokra Good catch, thanks! Will use path to generate

@alistairjcbrown alistairjcbrown force-pushed the add-moduledependencyerror-tests branch from bc95173 to 1199171 Compare January 21, 2017 17:40
Copy link
Copy Markdown
Member

@TheLarkInn TheLarkInn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@TheLarkInn TheLarkInn merged commit a892c4c into webpack:master Jan 21, 2017
@alistairjcbrown alistairjcbrown deleted the add-moduledependencyerror-tests branch January 21, 2017 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants