From 20c73e076e5cd8042e66690d4a95034dd8732908 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Fri, 18 Apr 2014 09:01:28 -0700 Subject: [PATCH] Simply assert that a TypeError is raised --- test/functions.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/functions.js b/test/functions.js index 41f17aaac..195aecbec 100644 --- a/test/functions.js +++ b/test/functions.js @@ -39,11 +39,7 @@ equal(Boundf().hello, 'moe curly', "When called without the new operator, it's OK to be bound to the context"); ok(newBoundf instanceof F, 'a bound instance is an instance of the original function'); - raises( - function() { _.bind('notafunction'); }, - function(actual) { return actual instanceof TypeError && actual.message !== ''; }, - 'throws an error when binding to a non-function' - ); + raises(function() { _.bind('notafunction'); }, TypeError, 'throws an error when binding to a non-function'); }); test('partial', function() {