/
githubmirror
/
gulp
Обзор
Документация
Войти
/
githubmirror
/
gulp
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.8.5
test/taskTree.js
43 строки
691 B
Dmitry Mazuro
remove spaces before '(' to follow style guide
05 мар 2014, 00:28
05 мар 2014, 00:28
eb4abfc
Код
Авторство
О чём код?
'use strict'; var taskTree = require('../lib/taskTree'); var should = require('should'); require('mocha'); describe('taskTree()', function() { it('should form a tree properly', function(done) { should.exist(taskTree); // lol shutup jshint var tasks = { test: { dep: ['abc', 'def'] }, abc: { dep: ['def'] }, def: { dep: [] } }; var expectTree = { nodes: [{ label: 'test', nodes: ['abc', 'def'] }, { label: 'abc', nodes: ['def'] }, { label: 'def', nodes: [] }] }; taskTree(tasks).should.eql(expectTree); done(); }); });