瀏覽代碼

Clean up concat test;

bjorn 10 年之前
父節點
當前提交
14113348f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/concat.lua

+ 1 - 1
tests/concat.lua

@@ -30,7 +30,7 @@ describe('concat', function()
     local subject = Rx.Subject.create()
     local onComplete = spy()
     local observable = Rx.Observable.concat(Rx.Observable.fromRange(1, 5), Rx.Observable.fromRange(1, 5), subject)
-    observable:subscribe(function() end, function() end, onComplete)
+    observable:subscribe(nil, nil, onComplete)
     expect(#onComplete).to.equal(0)
     subject:onComplete()
     expect(#onComplete).to.equal(1)