Skip to content

Commit

Permalink
Merge branch 'main' into OSM-1933/cocoapods-post-graph-monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
JCheung2004 committed Sep 20, 2024
2 parents 0e48191 + bfb4c05 commit 4f2960b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/tap/cli-monitor.acceptance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ if (!isWindows) {
async inspect() {
return {
plugin: { name: 'sbt' },
package: require(
getWorkspacePath('sbt-simple-struts/monitor-graph-result.json'),
),
package: require(getWorkspacePath(
'sbt-simple-struts/monitor-graph-result.json',
)),
};
},
};
Expand Down Expand Up @@ -1489,7 +1489,7 @@ if (!isWindows) {
};
},
};
console.log(plugin)

const spyPlugin = sinon.spy(plugin, 'inspect');

const loadPlugin = sinon.stub(plugins, 'loadPlugin');
Expand All @@ -1509,7 +1509,11 @@ if (!isWindows) {
const depGraphJSON = req.body.depGraphJSON;
t.ok(depGraphJSON);
t.match(req.url, '/monitor/cocoapods/graph', 'puts at correct url');
t.equal(req.body.targetFile, 'Podfile.lock', 'sends the targetFile (Podfile)');
t.equal(
req.body.targetFile,
'Podfile.lock',
'sends the targetFile (Podfile)',
);
t.same(
spyPlugin.getCall(0).args,
[
Expand Down Expand Up @@ -1564,7 +1568,7 @@ if (!isWindows) {
'sends version number',
);
t.match(req.url, '/monitor/cocoapods', 'puts at correct url');
t.equal(req.body.targetFile, 'Podfile', 'sends the targetFile (Podfile)');
t.equal(req.body.targetFile, 'Podfile.lock', 'sends the targetFile (Podfile.lock)');
t.same(
spyPlugin.getCall(0).args,
[
Expand Down

0 comments on commit 4f2960b

Please sign in to comment.