From 2e735b34e00c9d598f45dd2b091205aad045337b Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Fri, 11 Apr 2014 14:55:18 -0600 Subject: [PATCH] Added jasmine favicon to default html runner template. This will allow this project to be used with the [jasmine-favicon-reporter](https://github.com/simsalabim/jasmine-favicon-reporter) project as well as make the spec runner look a bit nicer. --- tasks/jasmine/templates/DefaultRunner.tmpl | 1 + tasks/lib/jasmine.js | 2 +- test/expected/defaultTemplate.html | 1 + test/jasmine_test.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/jasmine/templates/DefaultRunner.tmpl b/tasks/jasmine/templates/DefaultRunner.tmpl index 454e3f9..7fa17a3 100644 --- a/tasks/jasmine/templates/DefaultRunner.tmpl +++ b/tasks/jasmine/templates/DefaultRunner.tmpl @@ -3,6 +3,7 @@ Jasmine Spec Runner + <% css.forEach(function(style){ %> <% }) %> diff --git a/tasks/lib/jasmine.js b/tasks/lib/jasmine.js index bd91db0..401b13d 100644 --- a/tasks/lib/jasmine.js +++ b/tasks/lib/jasmine.js @@ -53,7 +53,7 @@ exports.init = function(grunt, phantomjs) { exports.copyTempFile(__dirname + '/../jasmine/reporters/PhantomReporter.js', 'reporter.js'); - ['jasmine.css', 'jasmine.js', 'jasmine-html.js', 'boot.js'].forEach(function(name){ + ['jasmine.css', 'jasmine.js', 'jasmine-html.js', 'boot.js', 'jasmine_favicon.png'].forEach(function(name){ var path = __dirname + '/../../vendor/jasmine-' + options.version + '/' + name; if (fs.existsSync(path)) exports.copyTempFile(path, name); }); diff --git a/test/expected/defaultTemplate.html b/test/expected/defaultTemplate.html index 6530ea8..a1dc71a 100644 --- a/test/expected/defaultTemplate.html +++ b/test/expected/defaultTemplate.html @@ -3,6 +3,7 @@ Jasmine Spec Runner + diff --git a/test/jasmine_test.js b/test/jasmine_test.js index 3ec634d..b26c2bd 100644 --- a/test/jasmine_test.js +++ b/test/jasmine_test.js @@ -31,6 +31,7 @@ exports.jasmine = { reporters : ['R1.js'], boot : ['BOOT.js'] }, + temp: 'path/to/temp/folder', options : {} };