Skip to content

Commit

Permalink
00672 RewardTransferGraph unit test randomly fails (#673)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Le Ponner <[email protected]>
  • Loading branch information
ericleponner authored Jul 28, 2023
1 parent 81268d9 commit 60353c5
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/unit/values/HbarAmount.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,26 @@
*/

import {describe, test, expect} from 'vitest'
import {afterAll, beforeAll, describe, expect, test} from 'vitest'
import {flushPromises, mount} from "@vue/test-utils";
import HbarAmount from "@/components/values/HbarAmount.vue";
import {SAMPLE_NETWORK_EXCHANGERATE} from "../Mocks";
import MockAdapter from "axios-mock-adapter";
import axios from "axios";

const mock = new MockAdapter(axios);
const matcher = "api/v1/network/exchangerate"
mock.onGet(matcher).reply(200, SAMPLE_NETWORK_EXCHANGERATE);

describe("HbarAmount.vue ", () => {

const mock = new MockAdapter(axios);

beforeAll(() => {
const matcher = "api/v1/network/exchangerate"
mock.onGet(matcher).reply(200, SAMPLE_NETWORK_EXCHANGERATE);
})

afterAll(() => {
mock.restore()
})

test("with amount set", async () => {

const testTinybarAmount = 42
Expand Down

0 comments on commit 60353c5

Please sign in to comment.