test(): browser and node tests now live in different directories

This enables one to run the appropriate tests according to evironment
This commit is contained in:
Estevão Soares dos Santos 2015-01-16 21:48:28 +00:00
parent 394d37983e
commit bf094ba446
3 changed files with 9 additions and 3 deletions

View File

@ -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'
}
}
}
});

BIN
dist/showdown.js vendored

Binary file not shown.

View File

@ -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