aave-protocol-v2/test/helpers/make-suite.ts
2020-06-10 15:47:39 +03:00

15 lines
374 B
TypeScript

import { evmRevert, evmSnapshot } from '../../helpers/misc-utils';
import { TEST_SNAPSHOT_ID } from '../../helpers/constants';
export function makeSuite(name: string, tests: () => void) {
describe(name, function () {
before(async () => {
await evmSnapshot();
});
tests();
after(async () => {
await evmRevert(TEST_SNAPSHOT_ID);
});
});
}