Skip to content

Commit

Permalink
chore(liquidationVisibility): #4 add test for case 2b, uncomment asse…
Browse files Browse the repository at this point in the history
…rtions for running the tests
  • Loading branch information
anilhelvaci committed Jan 25, 2024
1 parent 1a17dd4 commit b7cdb13
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 64 deletions.
13 changes: 6 additions & 7 deletions packages/inter-protocol/test/liquidationVisibility/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import { TimeMath } from '@agoric/time';
import { headValue } from '../supports.js';
import { getDataFromVstorage } from './tools.js';
import exp from "constants";

export const assertBidderPayout = async (
t,
Expand Down Expand Up @@ -247,13 +246,13 @@ export const assertLiqNodeForAuctionCreated = async ({
});
};

export const assertStorageData = async ({
t,
path,
storageRoot,
expected,
}) => {
export const assertStorageData = async ({ t, path, storageRoot, expected }) => {
/** @type Array */
const [[, value]] = await getDataFromVstorage(storageRoot, path);
t.deepEqual(value, expected);
};

export const assertVaultNotification = async ({ t, notifier, expected }) => {
const { value } = await E(notifier).getUpdateSince();
t.like(value, expected);
};
Loading

0 comments on commit b7cdb13

Please sign in to comment.