 						.then ->
 							resolve(lines)
 				.then (lines) ->
-					m.chai.expect(lines.length).to.equal(0)
+					m.chai.expect(lines).to.have.lengthOf(0)

							resolve(lines)
					.finally(logs.unsubscribe)
				.then (lines) ->
					m.chai.expect(lines.length).to.equal(2)
					m.chai.expect(lines).to.deep.match [{
						message: 'Old message'
					}, {

							resolve(lines)
					.finally(logs.unsubscribe)
				.then (lines) ->
					m.chai.expect(lines).to.have.lengthOf(0)

			it 'should load historical logs if requested', ->
				sendLogMessages @uuid, @deviceApiKey, [{
