mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
15 lines
374 B
TypeScript
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);
|
|
});
|
|
});
|
|
}
|