mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
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:
parent
394d37983e
commit
bf094ba446
10
Gruntfile.js
10
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
|
@ -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
|
Loading…
Reference in New Issue
Block a user