Skip to content

Commit

Permalink
Update OracleStatusController.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nichellekoh committed Apr 19, 2022
1 parent 71f8044 commit c020a92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ afterAll(async () => {
})

describe('OracleStatusController - Status test', () => {
it('/oracles?address=<address> - should get operational as last published < 45 mins ago', async () => {
it('/oracles/<address> - should get operational as last published < 45 mins ago', async () => {
jest.spyOn(apiTesting.app.get(WhaleApiClient).oracles, 'getPriceFeed')
.mockReturnValueOnce(getMockedOraclePriceFeed('df1qm7f2cx8vs9lqn8v43034nvckz6dxxpqezfh6dw', 5))

Expand All @@ -29,7 +29,7 @@ describe('OracleStatusController - Status test', () => {
expect(res.statusCode).toStrictEqual(200)
})

it('/oracles?address=<address> - should get outage as last published >= 45 mins ago', async () => {
it('/oracles/<address> - should get outage as last published >= 45 mins ago', async () => {
jest.spyOn(apiTesting.app.get(WhaleApiClient).oracles, 'getPriceFeed')
.mockReturnValueOnce(getMockedOraclePriceFeed('df1qcpp3entq53tdyklm5v0lnvqer4verr4puxchq4', 46))

Expand Down

0 comments on commit c020a92

Please sign in to comment.