Skip to content

Commit

Permalink
test: adjust partial graphs test to work with local folders, due to g…
Browse files Browse the repository at this point in the history
…lob breaking changes
  • Loading branch information
bigman73 committed Nov 10, 2022
1 parent b705c73 commit 2c834cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions test/005.testPartialGraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,8 @@ describe('PartialGraph', () => {
await container3.saveToFile(this.currentTest.filename3);

const container = new JGFContainer();
const partialWildcard = path.join(
path.dirname(this.currentTest.filename1),
'partial-good*.json'
);
await container.loadFromPartialFiles(
partialWildcard,
'./test/temp/partial-good*.json',
'JGFGraph',
'Good Main Graph - merged from partial graphs'
);
Expand Down
7 changes: 1 addition & 6 deletions test/006.testBadPartialGraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,8 @@ describe('BadPartialGraph', () => {
await container2.saveToFile(this.currentTest.filename2);

const container = new JGFContainer();
const partialWildcard = path.join(
path.dirname(this.currentTest.filename1),
'partial-bad*.json'
);

await nodeAssert.rejects(
() => container.loadFromPartialFiles(partialWildcard),
() => container.loadFromPartialFiles('./test/temp/partial-bad*.json'),
Error,
'Invalid graph'
);
Expand Down

0 comments on commit 2c834cc

Please sign in to comment.