Skip to content

Commit 6ca54a8

Browse files
committed
fixed test
1 parent 62afcd6 commit 6ca54a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Ported/Issues/RavenDB_15521.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { IDocumentStore } from "../../../src";
22
import { disposeTestDocumentStore, testContext } from "../../Utils/TestUtil";
33
import { assertThat } from "../../Utils/AssertExtensions";
4+
import { stringToReadable } from "../../../src/Utility/StreamUtil";
45

56
describe("RavenDB_15521", function () {
67

@@ -25,7 +26,7 @@ describe("RavenDB_15521", function () {
2526

2627
const attachment = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
2728

28-
session.advanced.attachments.store(doc, "TestAttachment", attachment);
29+
session.advanced.attachments.store(doc, "TestAttachment", stringToReadable(attachment));
2930

3031
await session.saveChanges();
3132

0 commit comments

Comments
 (0)