Skip to content

Commit

Permalink
bugfix(docs): use Unsetenv instead of Clearenv (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxllwx committed Jan 17, 2024
1 parent beaf16d commit 6f67a14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.md
Expand Up @@ -875,7 +875,7 @@ Describe("Reporting book weight", func() {

Context("with no WEIGHT_UNITS environment set", func() {
BeforeEach(func() {
err := os.Clearenv("WEIGHT_UNITS")
err := os.Unsetenv("WEIGHT_UNITS")
Expect(err).NotTo(HaveOccurred())
})

Expand Down Expand Up @@ -928,13 +928,13 @@ Describe("Reporting book weight", func() {
})

AfterEach(func() {
err := os.Clearenv("WEIGHT_UNITS")
err := os.Unsetenv("WEIGHT_UNITS")
Expect(err).NotTo(HaveOccurred())
})

Context("with no WEIGHT_UNITS environment set", func() {
BeforeEach(func() {
err := os.Clearenv("WEIGHT_UNITS")
err := os.Unsetenv("WEIGHT_UNITS")
Expect(err).NotTo(HaveOccurred())
})

Expand Down

0 comments on commit 6f67a14

Please sign in to comment.