Permalink
Browse files

test: remove useless assert in test/extend.js

  • Loading branch information...
1 parent 65bd756 commit 539a785b8825fdcd6e6dd5c742c730ce947e2b97 @TooTallNate committed Apr 24, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/extend.js
View
@@ -2,18 +2,19 @@ var $ = require('../')
, assert = require('assert')
$.import('Foundation')
-$.NSAutoreleasePool('alloc')('init')
+
+var pool = $.NSAutoreleasePool('alloc')('init')
// Subclass 'NSObject', creating a new class named 'NRTest'
var NRTest = $.NSObject.extend('NRTest')
, counter = 0
// Add a new method to the NRTest class responding to the "description" selector
-assert.ok(NRTest.addMethod('description', '@@:', function (self, _cmd) {
+NRTest.addMethod('description', '@@:', function (self, _cmd) {
counter++
assert.equal(_cmd, 'description')
return $('test')
-}))
+})
// Add an instance variable, an NSString* instance.
assert.ok(NRTest.addIvar('name', '@'))

0 comments on commit 539a785

Please sign in to comment.