소스 검색

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 10 년 전
부모
커밋
bf094ba446
3개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  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