amalgm 0.1.193 → 0.1.194
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/package.json
CHANGED
|
@@ -38,7 +38,9 @@ const {
|
|
|
38
38
|
publishedCardFor,
|
|
39
39
|
publishWall,
|
|
40
40
|
readWall,
|
|
41
|
+
startWallService,
|
|
41
42
|
stampCards,
|
|
43
|
+
stopWallService,
|
|
42
44
|
wallStats,
|
|
43
45
|
} = require('../workspace/wall');
|
|
44
46
|
|
|
@@ -383,3 +385,15 @@ test('project stats name every project resource, binding, and publish counter',
|
|
|
383
385
|
assert.ok(stats.publishSkips >= 1);
|
|
384
386
|
assert.ok(stats.paths.includes(project.file));
|
|
385
387
|
});
|
|
388
|
+
|
|
389
|
+
test('a restarted wall publishes once even when the project is already attached', async () => {
|
|
390
|
+
const before = wallStats();
|
|
391
|
+
startWallService();
|
|
392
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
393
|
+
stopWallService();
|
|
394
|
+
const after = wallStats();
|
|
395
|
+
assert.ok(
|
|
396
|
+
after.publishes + after.publishSkips
|
|
397
|
+
> before.publishes + before.publishSkips,
|
|
398
|
+
);
|
|
399
|
+
});
|
|
@@ -669,6 +669,7 @@ function startWallService() {
|
|
|
669
669
|
service.ensureInterval = setInterval(() => ensureProjects().catch(() => {}), ENSURE_INTERVAL_MS);
|
|
670
670
|
service.ensureInterval.unref?.();
|
|
671
671
|
ensureProjects().catch(() => {});
|
|
672
|
+
schedulePublish();
|
|
672
673
|
}
|
|
673
674
|
|
|
674
675
|
function stopWallService() {
|