Skip to content

Commit

Permalink
Fixes path for ComponentAnalyzer test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasso85 committed Dec 17, 2018
1 parent bf145bf commit 623c5ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/lbt/analyzer/ComponentAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test("routing with routes as array", (t) => {
};

const subject = new ComponentAnalyzer(mockPool);
return subject.analyze({name: "test/Component.js"}, mockInfo);
return subject.analyze({name: path.join("test", "Component.js")}, mockInfo);
});


Expand Down Expand Up @@ -82,7 +82,7 @@ test("routing with routes as object", (t) => {
};

const subject = new ComponentAnalyzer(mockPool);
return subject.analyze({name: "test/Component.js"}, mockInfo);
return subject.analyze({name: path.join("test", "Component.js")}, mockInfo);
});

test("routing with route with multiple targets", (t) => {
Expand Down Expand Up @@ -116,7 +116,7 @@ test("routing with route with multiple targets", (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/Master.view.xml",
"test/view/Detail.view.xml"
Expand Down Expand Up @@ -164,7 +164,7 @@ test("routing with targets with local config", (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/Master.view.js",
"test/subview/Detail.view.xml"
Expand Down

0 comments on commit 623c5ca

Please sign in to comment.