Skip to content

Commit 56a9ab3

Browse files
author
benholloway
committed
Merge branch 'develop' into feature/nonembedded-css-assets
2 parents 390b46d + 7225f38 commit 56a9ab3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/helpers/cli-test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ function factory(base) {
276276

277277
// organise a working directory
278278
var signature = escapeFilenameString(source, command);
279-
var src = !params.hasRun && resolveSrc(source);
279+
var sourceDir = !params.hasRun && resolveSrc(source);
280280
var cwd = resolveDest(signature);
281-
copySources(src, cwd, onCopyComplete);
281+
copySources(sourceDir, cwd, onCopyComplete);
282282

283283
// handler for end of copy process
284284
function onCopyComplete(error) {
@@ -366,7 +366,8 @@ function factory(base) {
366366
function getTestCase() {
367367
var args = Array.prototype.slice.call(arguments);
368368
var testStats = {
369-
sourceDir: src,
369+
source : source,
370+
sourceDir: sourceDir,
370371
runner : self,
371372
cwd : cwd,
372373
command : command,

test/specs/tasks/build-task.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ function expectations(testCase) {
2222
function customMatchers() {
2323
jasmine.addMatchers(diffMatchers.diffPatch);
2424
jasmine.addMatchers({
25-
toBeBuildHelpWithError : matchers.getHelpMatcher(/^\s*The "build" task/)
25+
toBeBuildHelpWithError: matchers.getHelpMatcher(/^\s*The "build" task/)
2626
});
27+
javascriptTask.customMatchers();
28+
cssTask.customMatchers();
2729
}
2830

2931
module.exports = {

0 commit comments

Comments
 (0)