1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
Description: Use newer Chai
Change due to API change for newer chai
Author: Bastien Roucariès <rouca@debian.org>
Forwarded: no
Last-Update: 2018-12-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/builder_test.js
+++ b/test/builder_test.js
@@ -8,7 +8,7 @@
this.builder.field('title')
this.builder.add({ id: 'id', title: 'constructor'})
- assert.deepProperty(this.builder.invertedIndex, 'constructor.title.id')
+ assert.nestedProperty(this.builder.invertedIndex, 'constructor.title.id')
assert.deepEqual(this.builder.invertedIndex.constructor.title.id, {})
assert.equal(this.builder.fieldTermFrequencies['title/id'].constructor, 1)
@@ -18,7 +18,7 @@
this.builder.field('constructor')
this.builder.add({ id: 'id', constructor: 'constructor'})
- assert.deepProperty(this.builder.invertedIndex, 'constructor.constructor.id')
+ assert.nestedProperty(this.builder.invertedIndex, 'constructor.constructor.id')
assert.deepEqual(this.builder.invertedIndex.constructor.constructor.id, {})
})
@@ -26,7 +26,7 @@
this.builder.field('title')
this.builder.add({ id: 'constructor', title: 'word'})
- assert.deepProperty(this.builder.invertedIndex, 'word.title.constructor')
+ assert.nestedProperty(this.builder.invertedIndex, 'word.title.constructor')
assert.deepEqual(this.builder.invertedIndex.word.title.constructor, {})
})
@@ -47,7 +47,7 @@
this.builder.field('title')
this.builder.add({ id: 'id', title: 'word'})
- assert.deepProperty(this.builder.invertedIndex, 'word.title.id.constructor')
+ assert.nestedProperty(this.builder.invertedIndex, 'word.title.id.constructor')
assert.deepEqual(this.builder.invertedIndex.word.title.id.constructor, ['foo'])
})
@@ -65,7 +65,7 @@
}
})
- assert.deepProperty(this.builder.invertedIndex, 'bob.name.id')
+ assert.nestedProperty(this.builder.invertedIndex, 'bob.name.id')
})
})
@@ -187,7 +187,7 @@
})
test('adds tokens to invertedIndex', function () {
- assert.deepProperty(this.builder.invertedIndex, 'test.title.id')
+ assert.nestedProperty(this.builder.invertedIndex, 'test.title.id')
})
test('builds a vector space of the document fields', function () {
|