Skip to content

Commit 2006e44

Browse files
committed
A little bit of cleanup
1 parent 30d3b53 commit 2006e44

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

mock.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
local Mock = {}
22

3-
4-
53
local subscriber
64

75
local function mockHandle(callback, thunk)
@@ -14,8 +12,6 @@ local function mockCalled(m, name, args)
1412
return subscriber(m, name, args)
1513
end
1614

17-
18-
1915
ExpectedCall = {}
2016

2117
function ExpectedCall:new(f, args)
@@ -53,7 +49,6 @@ function ExpectedCall:getReturnValues(...)
5349
return table.unpack(self._return)
5450
end
5551

56-
5752
MockExpectation = {}
5853

5954
function MockExpectation:new(m)
@@ -149,8 +144,6 @@ function MockExpectation:multipleTimes(times)
149144
return self
150145
end
151146

152-
153-
154147
function Mock:mockFunction(name)
155148
name = name or '<anonymous>'
156149
local f

spec/mock_spec.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,4 @@ describe('The mock library', function()
281281
end)
282282

283283
-- ordering
284-
285-
-- allowed vs. not allowed functions on the expectation (ie: state machine for expectation)
286284
end)

0 commit comments

Comments
 (0)