Skip to content

Commit

Permalink
chore: fixes spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Jan 5, 2024
1 parent 63434c2 commit ed9a91f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/fetcher/pkg/artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ var _ = Describe("Artifact", func() {
})

It("should use the correct key", func() {
fetcher := pkg.NewArtifactFetcher("env", "fundx", store)
fetcher := pkg.NewArtifactFetcher("env", "fund", store)
_, err := fetcher.Fetch("genesis", "1.0.0")
Expect(err).ToNot(HaveOccurred())
Expect(usedKey).To(Equal("env/fundx/block0.bin-1.0.0"))
Expect(usedKey).To(Equal("env/fund/block0.bin-1.0.0"))
})

It("should return the artifact", func() {
fetcher := pkg.NewArtifactFetcher("env", "fundx", store)
fetcher := pkg.NewArtifactFetcher("env", "fund", store)
artifact, err := fetcher.Fetch("genesis", "1.0.0")
Expect(err).ToNot(HaveOccurred())
Expect(artifact).To(Equal([]byte("artifact")))
})

When("not specifying a version", func() {
It("should use the correct key", func() {
fetcher := pkg.NewArtifactFetcher("env", "fundx", store)
fetcher := pkg.NewArtifactFetcher("env", "fund", store)
_, err := fetcher.Fetch("genesis", "")
Expect(err).ToNot(HaveOccurred())
Expect(usedKey).To(Equal("env/fundx/block0.bin"))
Expect(usedKey).To(Equal("env/fund/block0.bin"))
})
})
})
Expand Down

0 comments on commit ed9a91f

Please sign in to comment.