Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 574c141

Browse files
author
Hans Kristian Flaatten
committed
Implement missing test cases
1 parent 8974ff6 commit 574c141

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/suite.coffee

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,18 @@ describe 'parse()', ->
142142
qs = new MongoQS alias: foo: 'bar'
143143
assert.deepEqual qs.parse({foo: 'bix'}), bar: 'bix'
144144

145-
it 'should alias multiple keys'
145+
it 'should alias multiple keys', ->
146+
qs = new MongoQS alias: foo: 'bar', baz: 'bax'
147+
assert.deepEqual qs.parse({foo: 'bix', baz: 'box'}), bar: 'bix', bax: 'box'
146148

147149
describe 'ignoring', ->
148150
it 'should ignore key', ->
149151
qs = new MongoQS ignore: foo: true
150152
assert.deepEqual qs.parse({foo: 'bar', bar: 'foo'}), bar: 'foo'
151153

152-
it 'should ingore multiple keys'
154+
it 'should ingore multiple keys', ->
155+
qs = new MongoQS ignore: foo: true, bar: true
156+
assert.deepEqual qs.parse({foo: 'bar', bar: 'foo', baz: 'bax'}), baz: 'bax'
153157

154158
describe 'custom', ->
155159
it 'should enable built in bbox handler', ->

0 commit comments

Comments
 (0)