Skip to content

Commit

Permalink
fix foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li committed Nov 30, 2023
1 parent cc6c573 commit 560e615
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { TradingRewardFromDatabase } from '../../src/types';
import { clearData, migrate, teardown } from '../../src/helpers/db-helpers';
import { defaultTradingReward } from '../helpers/constants';
import { defaultTradingReward, defaultWallet } from '../helpers/constants';
import * as TradingRewardTable from '../../src/stores/trading-reward-table';
import { WalletTable } from '../../src';

describe('TradingReward store', () => {
beforeAll(async () => {
await migrate();
});

beforeEach(async () => {
await WalletTable.create(defaultWallet);
})

afterEach(async () => {
await clearData();
});
Expand Down

0 comments on commit 560e615

Please sign in to comment.