Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Include real diff.js in browser build

John Firebaugh54f03a8e6398
diff --git a/.gitignore b/.gitignore
index c8eebf36..b78532eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ _mocha.js
test.js
my-reporter.js
*.sw*
+lib/browser/diff.js
diff --git a/Makefile b/Makefile
index a35499c8..d9efed17 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,10 @@ SUPPORT = $(wildcard support/*.js)
all: mocha.js
-mocha.js: $(SRC) $(SUPPORT)
+lib/browser/diff.js: node_modules/diff/diff.js
+ cp node_modules/diff/diff.js lib/browser/diff.js
+
+mocha.js: $(SRC) $(SUPPORT) lib/browser/diff.js
@node support/compile $(SRC)
@cat \
support/head.js \
diff --git a/lib/browser/diff.js b/lib/browser/diff.js
deleted file mode 100644
index e69de29b..00000000