mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
Split setup and validation
This commit is contained in:
parent
151dd42bf3
commit
a575a792b3
@ -90,7 +90,12 @@ async function initialize({ app, db }: { app: IUnleashTest; db: ITestDb }) {
|
|||||||
ip: '127.0.0.1',
|
ip: '127.0.0.1',
|
||||||
featureName: `X`,
|
featureName: `X`,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function validateInitialState({
|
||||||
|
app,
|
||||||
|
db,
|
||||||
|
}: { app: IUnleashTest; db: ITestDb }) {
|
||||||
/**
|
/**
|
||||||
* This helps reason about the etag, which is formed by <query-hash>:<event-id>
|
* This helps reason about the etag, which is formed by <query-hash>:<event-id>
|
||||||
* To see the output you need to run this test with --silent=false
|
* To see the output you need to run this test with --silent=false
|
||||||
@ -187,6 +192,7 @@ describe.each([
|
|||||||
enabled,
|
enabled,
|
||||||
}));
|
}));
|
||||||
await initialize({ app, db });
|
await initialize({ app, db });
|
||||||
|
await validateInitialState({ app, db });
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user