From bf094ba446fc91519ee8ef34bff7b5c97776496a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Fri, 16 Jan 2015 21:48:28 +0000 Subject: [PATCH] test(): browser and node tests now live in different directories This enables one to run the appropriate tests according to evironment --- Gruntfile.js | 10 ++++++++-- dist/showdown.js | Bin 44925 -> 44925 bytes .../Container}/testMakeHtml.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) rename test/{converter => node/Container}/testMakeHtml.js (97%) diff --git a/Gruntfile.js b/Gruntfile.js index 24842d0..d6e9e70 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -32,14 +32,20 @@ module.exports = function (grunt) { files: ['Gruntfile.js', 'src/**/*.js'] }, simplemocha: { - all: { - src: 'test/**/*.js', + node: { + src: 'test/node/**/*.js', options: { globals: ['should'], timeout: 3000, ignoreLeaks: false, reporter: 'spec' } + }, + browser: { + src: 'test/browser/**/*.js', + options: { + reporter: 'spec' + } } } }); diff --git a/dist/showdown.js b/dist/showdown.js index bd29a705a61c7902a5dab94ca3e69e071e357662..f7f0afd52e1f6a4db0f890d3690079750e51e0e7 100644 GIT binary patch delta 27 icmex+kLm9{CIM@GEk%XmjQsMH{PH{nL$i$nx$6O)VhVi# delta 27 icmex+kLm9{CIM@GEk%XmjQsMH{PH{nL(`1{x$6O)T?%{v diff --git a/test/converter/testMakeHtml.js b/test/node/Container/testMakeHtml.js similarity index 97% rename from test/converter/testMakeHtml.js rename to test/node/Container/testMakeHtml.js index 9095cef..0918bff 100644 --- a/test/converter/testMakeHtml.js +++ b/test/node/Container/testMakeHtml.js @@ -10,7 +10,7 @@ var fs = require('fs'), dir = 'test/cases/', - showdown = require('../../dist/showdown.js'), + showdown = require('../../../dist/showdown.js'), converter = new showdown.Converter(); // Load test cases from disk