Ver Fonte

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

This enables one to run the appropriate tests according to evironment
Estevão Soares dos Santos há 10 anos atrás
pai
commit
bf094ba446
3 ficheiros alterados com 10 adições e 4 exclusões
  1. 8 2
      Gruntfile.js
  2. 1 1
      dist/showdown.js
  3. 1 1
      test/node/Container/testMakeHtml.js

+ 8 - 2
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'
+                }
             }
         }
     });

+ 1 - 1
dist/showdown.js

@@ -1,4 +1,4 @@
-;/*! showdown 15-01-2015 */
+;/*! showdown 16-01-2015 */
 (function(){
  'use strict';
 /**

+ 1 - 1
test/converter/testMakeHtml.js → 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