Files
starface-outlook-sync-addin/node_modules/continuation-local-storage/test/async-context.tap.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

19 lines
504 B
JavaScript

'use strict';
var tap = require('tap')
, test = tap.test
, createNamespace = require('../context.js').createNamespace
;
test("asynchronously propagating state with local-context-domains", function (t) {
t.plan(2);
var namespace = createNamespace('namespace');
t.ok(process.namespaces.namespace, "namespace has been created");
namespace.run(function () {
namespace.set('test', 1337);
t.equal(namespace.get('test'), 1337, "namespace is working");
});
});