Skip to content

Commit

Permalink
test: too many problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mcombuechen committed Aug 8, 2024
1 parent fbf57a3 commit 1b054f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/acceptance/fake-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,17 @@ export const fakeServer = (basePath: string, snykToken: string): FakeServer => {
return;
}

let depGraphData = {
const depGraphData = {
schemaVersion: '1.2.0',
pkgManager: {
name: 'rpm',
repositories: [{ alias: 'rhel:8.2' }],
},
pkgs: [
{
id: 'docker-image|foo2@1.2.3',
id: 'docker-image|foo@1.2.3',
info: {
name: 'docker-image|foo2',
name: 'docker-image|foo',
version: '1.2.3',
},
},
Expand All @@ -369,17 +369,17 @@ export const fakeServer = (basePath: string, snykToken: string): FakeServer => {
nodes: [
{
nodeId: 'root-node',
pkgId: 'docker-image|foo2@1.2.3',
pkgId: 'docker-image|foo@1.2.3',
deps: [],
},
],
},
};

// If a dep-graph can be found on the request, echo it.
depGraphData =
req.body.scanResult?.facts.find((fact) => fact.type === 'depGraph')
?.data || depGraphData;
// depGraphData =
// req.body.scanResult?.facts.find((fact) => fact.type === 'depGraph')
// ?.data || depGraphData;

res.send({
result: {
Expand Down

0 comments on commit 1b054f1

Please sign in to comment.