We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbd5eb5 commit 6b72548Copy full SHA for 6b72548
package.json
@@ -74,7 +74,6 @@
74
"mocha": "^3.1.2",
75
"phantomjs-prebuilt": "^2.1.5",
76
"semantic-release": "^4.3.5",
77
- "simple-assert": "^1.0.0",
78
"travis-after-all": "^1.4.4",
79
"validate-commit-msg": "^2.3.1"
80
},
test/index.js
@@ -1,6 +1,11 @@
1
'use strict';
2
-var assert = require('simple-assert');
3
var getFuncName = require('..');
+function assert(expr, msg) {
4
+ if (!expr) {
5
+ throw new Error(msg || 'Assertion Failed');
6
+ }
7
+}
8
+
9
describe('getFuncName', function () {
10
it('should get the function name', function () {
11
function normalFunction() {
0 commit comments