Skip to content

Commit

Permalink
Replace simple-assert with a throw (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson authored Oct 8, 2021
1 parent fbd5eb5 commit 6b72548
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"mocha": "^3.1.2",
"phantomjs-prebuilt": "^2.1.5",
"semantic-release": "^4.3.5",
"simple-assert": "^1.0.0",
"travis-after-all": "^1.4.4",
"validate-commit-msg": "^2.3.1"
},
Expand Down
7 changes: 6 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
'use strict';
var assert = require('simple-assert');
var getFuncName = require('..');
function assert(expr, msg) {
if (!expr) {
throw new Error(msg || 'Assertion Failed');
}
}

describe('getFuncName', function () {
it('should get the function name', function () {
function normalFunction() {
Expand Down

0 comments on commit 6b72548

Please sign in to comment.