mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 08:26:35 +08:00
40 lines
359 B
TypeScript
40 lines
359 B
TypeScript
Given(() => { });
|
|
|
|
When(() => { });
|
|
|
|
Then(() => { });
|
|
|
|
And(() => { });
|
|
|
|
Invariant(() => { });
|
|
|
|
Given((done) => {
|
|
if (done) {
|
|
done();
|
|
}
|
|
});
|
|
|
|
When((done) => {
|
|
if (done) {
|
|
done();
|
|
}
|
|
});
|
|
|
|
Then((done) => {
|
|
if (done) {
|
|
done();
|
|
}
|
|
});
|
|
|
|
And((done) => {
|
|
if (done) {
|
|
done();
|
|
}
|
|
});
|
|
|
|
Invariant((done) => {
|
|
if (done) {
|
|
done();
|
|
}
|
|
});
|