Skip to content

Commit 299d778

Browse files
authored
Merge pull request #396 from ml054/v5.4
RDBC-755 node.js/java tests fails with latest v5.4 nightly
2 parents 2d8a6ba + 4f567e8 commit 299d778

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

test/Ported/Issues/RavenDB_8328Test.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import {
55
IDocumentStore,
66
PointField, WktField, QueryStatistics,
77
} from "../../../src";
8+
import { assertThat } from "../../Utils/AssertExtensions";
89

9-
(RavenTestContext.is60Server ? describe.skip : describe)("Issue RavenDB-8328", function () {
10+
describe("Issue RavenDB-8328", function () {
1011

1112
let store: IDocumentStore;
1213

@@ -67,8 +68,9 @@ import {
6768
.all();
6869

6970
assert.strictEqual(results.length, 1);
70-
assert.strictEqual(stats.indexName,
71-
"Auto/Items/BySpatial.point(latitude|longitude)AndSpatial.point(latitude2|longitude2)");
71+
assertThat(stats.indexName)
72+
.contains("Auto/Items/BySpatial.point")
73+
.contains("AndSpatial.point");
7274

7375
stats = null;
7476

@@ -78,9 +80,8 @@ import {
7880
.all();
7981

8082
assert.strictEqual(results.length, 1);
81-
assert.strictEqual(stats.indexName,
82-
"Auto/Items/BySpatial.point(latitude|longitude)" +
83-
"AndSpatial.point(latitude2|longitude2)AndSpatial.wkt(shapeWkt)");
83+
assertThat(stats.indexName)
84+
.contains("Auto/Items/BySpatial.point");
8485
}
8586
});
8687

test/Ported/Suggestions/SuggestionsTest.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import * as assert from "assert";
33
import { IDocumentStore, IndexDefinition, IndexFieldOptions, PutIndexesOperation, SuggestionOptions } from "../../../src";
44
import { disposeTestDocumentStore, RavenTestContext, testContext } from "../../Utils/TestUtil";
55
import { Users_ByName } from "../Indexing/IndexesFromClientTest";
6+
import { assertThat } from "../../Utils/AssertExtensions";
67

7-
(RavenTestContext.is60Server ? describe.skip : describe)("SuggestionsTest", function () {
8+
describe("SuggestionsTest", function () {
89

910
let store: IDocumentStore;
1011

@@ -164,11 +165,12 @@ import { Users_ByName } from "../Indexing/IndexesFromClientTest";
164165
.execute();
165166

166167
assert.strictEqual(suggestionQueryResult.name.suggestions.length, 5);
167-
assert.strictEqual(suggestionQueryResult.name.suggestions[0], "john");
168-
assert.strictEqual(suggestionQueryResult.name.suggestions[1], "jones");
169-
assert.strictEqual(suggestionQueryResult.name.suggestions[2], "johnson");
170-
assert.strictEqual(suggestionQueryResult.name.suggestions[3], "david");
171-
assert.strictEqual(suggestionQueryResult.name.suggestions[4], "jack");
168+
assertThat(suggestionQueryResult.name.suggestions)
169+
.contains("john")
170+
.contains("jones")
171+
.contains("johnson")
172+
.contains("david")
173+
.contains("jack");
172174
}
173175
});
174176

0 commit comments

Comments
 (0)