@@ -49,24 +49,24 @@ var _ = Describe("MultipleDigest", func() {
4949 It ("returns error if unmarshalling fails" , func () {
5050 _ , err := ParseMultipleDigest ("" )
5151 Expect (err ).To (HaveOccurred ())
52- Expect (err .Error ()).To (Equal ("No digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
52+ Expect (err .Error ()).To (Equal ("no digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
5353 })
5454 It ("returns error if digest contains non-alphanumeric characters" , func () {
5555 _ , err := ParseMultipleDigest ("sha1:!" )
5656 Expect (err ).To (HaveOccurred ())
57- Expect (err .Error ()).To (Equal ("Unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters. " ))
57+ Expect (err .Error ()).To (Equal ("unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters" ))
5858 })
5959
6060 It ("returns error if algorithm key contains non-alphanumeric characters" , func () {
6161 _ , err := ParseMultipleDigest ("d!m!tr3:abc" )
6262 Expect (err ).To (HaveOccurred ())
63- Expect (err .Error ()).To (Equal ("Unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters. " ))
63+ Expect (err .Error ()).To (Equal ("unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters" ))
6464 })
6565
6666 It ("returns error if algorithm key is empty" , func () {
6767 _ , err := ParseMultipleDigest (":" )
6868 Expect (err ).To (HaveOccurred ())
69- Expect (err .Error ()).To (Equal ("Unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters. " ))
69+ Expect (err .Error ()).To (Equal ("unable to parse digest string. Digest and algorithm key can only contain alpha-numeric characters" ))
7070 })
7171 })
7272
@@ -97,7 +97,7 @@ var _ = Describe("MultipleDigest", func() {
9797
9898 err := digest .VerifyFilePath (file .Name (), fileSystem )
9999 Expect (err ).To (HaveOccurred ())
100- Expect (err .Error ()).To (Equal (fmt .Sprintf ("Calculating digest of '%s': nope" , file .Name ())))
100+ Expect (err .Error ()).To (Equal (fmt .Sprintf ("calculating digest of '%s': nope" , file .Name ())))
101101 })
102102 })
103103
@@ -106,7 +106,7 @@ var _ = Describe("MultipleDigest", func() {
106106 It ("returns error" , func () {
107107 err := MultipleDigest {}.Verify (strings .NewReader ("desired content" ))
108108 Expect (err ).To (HaveOccurred ())
109- Expect (err .Error ()).To (Equal ("Expected to find at least one digest" ))
109+ Expect (err .Error ()).To (Equal ("expected to find at least one digest" ))
110110 })
111111 })
112112
@@ -461,13 +461,13 @@ var _ = Describe("MultipleDigest", func() {
461461 It ("returns an error if the JSON does not contain any digests" , func () {
462462 err := json .Unmarshal ([]byte (`""` ), & digest )
463463 Expect (err ).To (HaveOccurred ())
464- Expect (err .Error ()).To (ContainSubstring ("No digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
464+ Expect (err .Error ()).To (ContainSubstring ("no digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
465465 })
466466
467467 It ("returns an error if the JSON contains only semicolon" , func () {
468468 err := json .Unmarshal ([]byte (`";"` ), & digest )
469469 Expect (err ).To (HaveOccurred ())
470- Expect (err .Error ()).To (ContainSubstring ("No digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
470+ Expect (err .Error ()).To (ContainSubstring ("no digest algorithm found. Supported algorithms: sha1, sha256, sha512" ))
471471 })
472472 })
473473})
0 commit comments