/
githubmirror
/
gulp
Обзор
Документация
Войти
/
githubmirror
/
gulp
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.9.1
test/taskTree.js
42 строки
731 B
Joel Kemp
Bring JSCS to Gulp. Fixes #904
15 мар 2015, 18:46
15 мар 2015, 18:46
a54996c
Код
Авторство
О чём код?
'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(); }); });