@contentful/app-scripts 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean-up/clean-up-bundles.test.js +4 -0
- package/npm-shrinkwrap.json +1302 -0
- package/package.json +13 -13
|
@@ -78,6 +78,8 @@ describe('cleanUpBundles', () => {
|
|
|
78
78
|
await clock.tickAsync(150);
|
|
79
79
|
// Here the next ones also have called
|
|
80
80
|
assert.strictEqual(clientMock.appBundle.delete.callCount, 4); // 2 before + 2 new
|
|
81
|
+
|
|
82
|
+
clock.restore();
|
|
81
83
|
});
|
|
82
84
|
it('slow call will occupy slot until finished', async () => {
|
|
83
85
|
const clock = useFakeTimers();
|
|
@@ -94,5 +96,7 @@ describe('cleanUpBundles', () => {
|
|
|
94
96
|
assert.strictEqual(clientMock.appBundle.delete.callCount, 3); // 2 before + 1 new (1 still in flight and occupies slot)
|
|
95
97
|
await clock.tickAsync(100);
|
|
96
98
|
assert.strictEqual(clientMock.appBundle.delete.callCount, 5); // 3 before + 2 new (slot is free again)
|
|
99
|
+
|
|
100
|
+
clock.restore();
|
|
97
101
|
});
|
|
98
102
|
});
|