This enables one to run the appropriate tests according to evironment
@@ -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'
+ }
});
@@ -1,4 +1,4 @@
-;/*! showdown 15-01-2015 */
+;/*! showdown 16-01-2015 */
(function(){
'use strict';
/**
@@ -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