Skip to content
Snippets Groups Projects
Commit 81979456 authored by Utkarsh Gupta's avatar Utkarsh Gupta
Browse files

Add patch to use mocha

parent 4f8942a5
No related branches found
No related tags found
No related merge requests found
use-mocha.patch
diff --git a/test.js b/test.js
index 840baf8..1fe0a5c 100644
--- a/test.js
+++ b/test.js
@@ -1,7 +1,7 @@
-import test from 'ava';
-import m from '.';
+var m = require('.');
+var assert = require('assert');
-test('main', t => {
- t.deepEqual(m([1, 2, 2, 3, 1, 2, 4]), [1, 2, 3, 4]);
- t.deepEqual(m(['a', 'a', 'b', 'a', 'c', 'a', 'd']), ['a', 'b', 'c', 'd']);
+test('main', function() {
+ assert(m([1, 2, 2, 3, 1, 2, 4]), [1, 2, 3, 4]);
+ assert(m(['a', 'a', 'b', 'a', 'c', 'a', 'd']), ['a', 'b', 'c', 'd']);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment