Skip to content

Commit

Permalink
Remove duplication in XML matcher tests
Browse files Browse the repository at this point in the history
- `sample_01` is already a byte slice, so casting it makes no
differrence
- there is already an identity test for `sample_01`
- see #357 for context
  • Loading branch information
blgm committed Aug 19, 2019
1 parent 7bf756a commit cc1a6cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions matchers/match_xml_matcher_test.go
Expand Up @@ -41,10 +41,6 @@ var _ = Describe("MatchXMLMatcher", func() {
Expect(sample_09).ShouldNot(MatchXML(sample_10)) // same structures with different attribute values
Expect(sample_11).Should(MatchXML(sample_11)) // with non UTF-8 encoding
})

It("should work with byte arrays", func() {
Expect(sample_01).Should(MatchXML(sample_01))
})
})

Context("when the expected is not valid XML", func() {
Expand Down

0 comments on commit cc1a6cb

Please sign in to comment.