1
0
mirror of https://github.com/Chalarangelo/mini.css.git synced 2025-01-17 21:08:13 +01:00
Angelos Chalaris 11e48409bb Started working on Gluon core
Core module has been initialized, as well as a default flavor. Minor changes (read DEVLOG), moved things around, cleaned up some things and built some of the basic features.
2018-05-28 12:29:34 +03:00

25 lines
526 B
JavaScript

var test = require("tap").test;
var nextTick = require('./');
test('should work', function (t) {
t.plan(5);
nextTick(function (a) {
t.ok(a);
nextTick(function (thing) {
t.equals(thing, 7);
}, 7);
}, true);
nextTick(function (a, b, c) {
t.equals(a, 'step');
t.equals(b, 3);
t.equals(c, 'profit');
}, 'step', 3, 'profit');
});
test('correct number of arguments', function (t) {
t.plan(1);
nextTick(function () {
t.equals(2, arguments.length, 'correct number');
}, 1, 2);
});