Skip to content

Commit

Permalink
Fixes paths in ComponentAnalyzer test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasso85 committed Dec 17, 2018
1 parent 3da5ada commit dd5ef94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/lbt/analyzer/ComponentAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ test("rootView with object", (t) => {
};

const subject = new ComponentAnalyzer(mockPool);
return subject.analyze({name: "test/Component.js"}, mockInfo).then( () => {
return subject.analyze({name: path.join("test", "Component.js")}, mockInfo).then( () => {
t.deepEqual(mockInfo.deps, [
"test/view/App.view.js",
], "dependencies should be correct");
Expand All @@ -217,7 +217,7 @@ test("rootView with string", (t) => {
};

const subject = new ComponentAnalyzer(mockPool);
return subject.analyze({name: "test/Component.js"}, mockInfo).then( () => {
return subject.analyze({name: path.join("test", "Component.js")}, mockInfo).then( () => {
t.deepEqual(mockInfo.deps, [
"test/view/App.view.xml",
], "dependencies should be correct");
Expand Down

0 comments on commit dd5ef94

Please sign in to comment.