Skip to content

Commit 2cd2580

Browse files
committed
fix: test/build_bundless_test.go: fix test to not depend on absolute paths
1 parent 4de47d1 commit 2cd2580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/build_bundless_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ var _ = Describe("Build bundless", func() {
130130
It("should fail on engined but unknown entrypoint", func() {
131131
result := b.Build("gem3/unknown.js")
132132

133-
Expect(result.Errors[0].Text).To(Equal("Could not read from file: /Users/joelmoss/dev/proscenium/fixtures/dummy/vendor/gem3/unknown.js"))
133+
Expect(result.Errors[0].Text).To(HavePrefix("Could not read from file: /"))
134134
})
135135

136136
It("resolves entry point", func() {
@@ -194,7 +194,7 @@ var _ = Describe("Build bundless", func() {
194194
It("should fail on engined but unknown entrypoint", func() {
195195
result := b.Build("gem4/unknown.js")
196196

197-
Expect(result.Errors[0].Text).To(Equal("Could not read from file: /Users/joelmoss/dev/proscenium/fixtures/external/gem4/unknown.js"))
197+
Expect(result.Errors[0].Text).To(HavePrefix("Could not read from file: /"))
198198
})
199199

200200
It("resolves entry point", func() {

0 commit comments

Comments
 (0)