Created
November 12, 2014 02:17
-
-
Save stilist/c745deea90941d3a2a0c to your computer and use it in GitHub Desktop.
Unusable test for clear-broccoli-build-target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| var Builder = require('broccoli').Builder, | |
| // see https://github.com/stilist/clear-broccoli-build-target | |
| clearBuildTarget = require('../lib/clear-build-target'), | |
| fs = require('fs-extra'), | |
| test = require('tap').test | |
| test('clear build target', function (t) { | |
| var test_dir = 'tmp_test' | |
| var builder = new Builder(test_dir) | |
| builder.build().then(function (hash) { | |
| t.equal(hash.directory, test_dir) | |
| t.ok(fs.existsSync(hash.directory), 'create target directory') | |
| clearBuildTarget() | |
| t.notOk(fs.existsSync(hash.directory), 'remove target directory') | |
| t.end() | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment