Skip to content

Commit

Permalink
remove pointless test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmattgray committed Jan 30, 2024
1 parent f0ff87b commit 03989f8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/policyAgent/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,13 @@ describe('policy agent', function () {
})
})

describe('evaluate success', function () {
const { origin } = withEvaluateResponse(examplePackageId, true)
describe('evaluate', function () {
const { origin } = withEvaluateResponse(examplePackageId)

Check failure on line 54 in src/policyAgent/__tests__/index.test.ts

View workflow job for this annotation

GitHub Actions / Run tests

Expected 2 arguments, but got 1.

it('should return allow true', async function () {
const policyAgent = new PolicyAgent(origin)
const result = await policyAgent.evaluate(examplePackageId, {})
expect(result.allow).to.equal(true)
})
})

describe('evaluate fail', function () {
const { origin } = withEvaluateResponse(examplePackageId, false)

it('should return allow false', async function () {
const policyAgent = new PolicyAgent(origin)
const result = await policyAgent.evaluate(examplePackageId, {})
expect(result.allow).to.equal(false)
})
})
})

0 comments on commit 03989f8

Please sign in to comment.