eyeling 1.29.0 → 1.29.2

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.
@@ -317,6 +317,19 @@ const cases = [
317
317
  ]);
318
318
  },
319
319
  },
320
+ {
321
+ name: '--stream-messages can persist each message result into a named store',
322
+ run(tmp) {
323
+ const rules = path.join(tmp, 'rules.n3');
324
+ const log = path.join(tmp, 'messages.trig');
325
+ const storePath = path.join(tmp, 'store');
326
+ writeScopedPayloadRules(rules);
327
+ writeBasicMessageLog(log);
328
+ const out = expectEyelingOk(['-r', '--stream-messages', '--store', 'messages', '--store-path', storePath, '--store-clear', rules, log]);
329
+ assert.equal(out, 'one\ntwo\nthree\n');
330
+ assert.ok(fs.existsSync(path.join(storePath, 'messages.json')) || fs.existsSync(path.join(storePath, 'messages')));
331
+ },
332
+ },
320
333
  {
321
334
  name: '--stream-messages requires RDF mode',
322
335
  run(tmp) {