Skip to content

Commit

Permalink
refactor: replaced context with when in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Feb 11, 2021
1 parent 47fe3c0 commit 7588ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/quote/quote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var _ = Describe("Quote", func() {
Expect(output).To(Equal(expected))
})

Context("when the market is in a pre-market trading session", func() {
When("the market is in a pre-market trading session", func() {
It("should return the pre-market price", func() {
responseFixture := `{
"quoteResponse": {
Expand Down Expand Up @@ -114,7 +114,7 @@ var _ = Describe("Quote", func() {
})
})

Context("when the market is in a post-market trading session", func() {
When("the market is in a post-market trading session", func() {
It("should return the post-market price added to the regular market price", func() {
responseFixture := `{
"quoteResponse": {
Expand Down Expand Up @@ -169,7 +169,7 @@ var _ = Describe("Quote", func() {
})
})

Context("when the market is CLOSED", func() {
When("the market is CLOSED", func() {
It("should return the post-market price added to the regular market price", func() {
responseFixture := `{
"quoteResponse": {
Expand Down

0 comments on commit 7588ef6

Please sign in to comment.