Skip to content

Commit 04b372c

Browse files
committed
[ change ] Prevent Test__Connection.res from relying on real world dependencies
1 parent 25861ef commit 04b372c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/js/test/tests/Test__Connection.bs.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/tests/Test__Connection.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ describe("Connection", () => {
809809
| None => failwith("Mock endpoint not available")
810810
}
811811

812-
let platformDeps = Desktop.make()
812+
let platformDeps = Mock.Platform.makeBasic()
813813
let paths = [mockPath]
814814
let result = await Connection.fromPaths(platformDeps, paths)
815815

@@ -834,7 +834,7 @@ describe("Connection", () => {
834834
| None => failwith("Mock endpoint not available")
835835
}
836836

837-
let platformDeps = Desktop.make()
837+
let platformDeps = Mock.Platform.makeBasic()
838838
let paths = ["invalid/path/1", "invalid/path/2", mockPath, "invalid/path/3"]
839839
let result = await Connection.fromPaths(platformDeps, paths)
840840

@@ -854,7 +854,7 @@ describe("Connection", () => {
854854
Async.it(
855855
"should return Construction error when all paths are invalid",
856856
async () => {
857-
let platformDeps = Desktop.make()
857+
let platformDeps = Mock.Platform.makeBasic()
858858
let paths = ["invalid/path/1", "invalid/path/2", "invalid/path/3"]
859859
let result = await Connection.fromPaths(platformDeps, paths)
860860

@@ -878,7 +878,7 @@ describe("Connection", () => {
878878
Async.it(
879879
"should return empty error when no paths provided",
880880
async () => {
881-
let platformDeps = Desktop.make()
881+
let platformDeps = Mock.Platform.makeBasic()
882882
let paths = []
883883
let result = await Connection.fromPaths(platformDeps, paths)
884884

0 commit comments

Comments
 (0)