]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-args/test.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / npm-registry-client / node_modules / concat-stream / node_modules / readable-stream / node_modules / process-nextick-args / test.js
1 var test = require("tap").test;
2 var nextTick = require('./');
3
4 test('should work', function (t) {
5   t.plan(5);
6   nextTick(function (a) {
7     t.ok(a);
8     nextTick(function (thing) {
9       t.equals(thing, 7);
10     }, 7);
11   }, true);
12   nextTick(function (a, b, c) {
13     t.equals(a, 'step');
14     t.equals(b, 3);
15     t.equals(c, 'profit');
16   }, 'step', 3,  'profit');
17 });
18
19 test('correct number of arguments', function (t) {
20   t.plan(1);
21   nextTick(function () {
22     t.equals(2, arguments.length, 'correct number');
23   }, 1, 2);
24 });