From 814db3f0330b02a7af8ada91dadccfc7a1ec84f0 Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 15 Jan 2020 18:03:22 -0500 Subject: [PATCH] Add extension to snapshots files (make it easier to format them for visualization) --- ...es AlbumList with data should match .JSON} | 0 ...ses AlbumList with data should match .XML} | 0 ...AlbumList without data should match .JSON} | 0 ... AlbumList without data should match .XML} | 0 ...ponses Child with data should match .JSON} | 0 ...sponses Child with data should match .XML} | 0 ...es Directory with data should match .JSON} | 0 ...ses Directory with data should match .XML} | 0 ...Directory without data should match .JSON} | 0 ... Directory without data should match .XML} | 0 ...esponses EmptyResponse should match .JSON} | 0 ...Responses EmptyResponse should match .XML} | 0 ...onses Genres with data should match .JSON} | 0 ...ponses Genres with data should match .XML} | 0 ...es Genres without data should match .JSON} | 0 ...ses Genres without data should match .XML} | 0 ...nses Indexes with data should match .JSON} | 0 ...onses Indexes with data should match .XML} | 0 ...s Indexes without data should match .JSON} | 0 ...es Indexes without data should match .XML} | 0 ...atch-Responses License should match .JSON} | 0 ...Match-Responses License should match .XML} | 0 ...MusicFolders with data should match .JSON} | 0 ... MusicFolders with data should match .XML} | 0 ...icFolders without data should match .JSON} | 0 ...sicFolders without data should match .XML} | 0 ...es Playlists with data should match .JSON} | 0 ...ses Playlists with data should match .XML} | 0 ...Playlists without data should match .JSON} | 0 ... Playlists without data should match .XML} | 0 ...sponses User with data should match .JSON} | 0 ...esponses User with data should match .XML} | 0 ...nses User without data should match .JSON} | 0 ...onses User without data should match .XML} | 0 api/responses/responses_test.go | 68 +++++++++---------- 35 files changed, 34 insertions(+), 34 deletions(-) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList with data should match JSON => responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList with data should match XML => responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList without data should match JSON => responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList without data should match XML => responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Child with data should match JSON => responses-snapshotMatcher-Match-Responses Child with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Child with data should match XML => responses-snapshotMatcher-Match-Responses Child with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory with data should match JSON => responses-snapshotMatcher-Match-Responses Directory with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory with data should match XML => responses-snapshotMatcher-Match-Responses Directory with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory without data should match JSON => responses-snapshotMatcher-Match-Responses Directory without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory without data should match XML => responses-snapshotMatcher-Match-Responses Directory without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses EmptyResponse should match JSON => responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses EmptyResponse should match XML => responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres with data should match JSON => responses-snapshotMatcher-Match-Responses Genres with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres with data should match XML => responses-snapshotMatcher-Match-Responses Genres with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres without data should match JSON => responses-snapshotMatcher-Match-Responses Genres without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres without data should match XML => responses-snapshotMatcher-Match-Responses Genres without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes with data should match JSON => responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes with data should match XML => responses-snapshotMatcher-Match-Responses Indexes with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes without data should match JSON => responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes without data should match XML => responses-snapshotMatcher-Match-Responses Indexes without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses License should match JSON => responses-snapshotMatcher-Match-Responses License should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses License should match XML => responses-snapshotMatcher-Match-Responses License should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders with data should match JSON => responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders with data should match XML => responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders without data should match JSON => responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders without data should match XML => responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists with data should match JSON => responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists with data should match XML => responses-snapshotMatcher-Match-Responses Playlists with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists without data should match JSON => responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists without data should match XML => responses-snapshotMatcher-Match-Responses Playlists without data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User with data should match JSON => responses-snapshotMatcher-Match-Responses User with data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User with data should match XML => responses-snapshotMatcher-Match-Responses User with data should match .XML} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User without data should match JSON => responses-snapshotMatcher-Match-Responses User without data should match .JSON} (100%) rename api/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User without data should match XML => responses-snapshotMatcher-Match-Responses User without data should match .XML} (100%) diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .XML diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match JSON b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .JSON similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match JSON rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .JSON diff --git a/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match XML b/api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .XML similarity index 100% rename from api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match XML rename to api/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .XML diff --git a/api/responses/responses_test.go b/api/responses/responses_test.go index 230999210..af17701f7 100644 --- a/api/responses/responses_test.go +++ b/api/responses/responses_test.go @@ -22,10 +22,10 @@ var _ = Describe("Responses", func() { }) Describe("EmptyResponse", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -34,10 +34,10 @@ var _ = Describe("Responses", func() { BeforeEach(func() { response.License = &License{Valid: true} }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -48,10 +48,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -64,10 +64,10 @@ var _ = Describe("Responses", func() { response.MusicFolders.Folders = folders }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -79,10 +79,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -96,10 +96,10 @@ var _ = Describe("Responses", func() { response.Indexes.Index = index }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -120,10 +120,10 @@ var _ = Describe("Responses", func() { response.Directory.Child = child }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -135,10 +135,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -150,10 +150,10 @@ var _ = Describe("Responses", func() { response.Directory.Child = child }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -165,10 +165,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -180,10 +180,10 @@ var _ = Describe("Responses", func() { response.AlbumList.Album = child }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -195,10 +195,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -209,10 +209,10 @@ var _ = Describe("Responses", func() { response.User.Folder = []int{1} }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -224,10 +224,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -240,10 +240,10 @@ var _ = Describe("Responses", func() { response.Playlists.Playlist = pls }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -255,10 +255,10 @@ var _ = Describe("Responses", func() { }) Context("without data", func() { - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) }) @@ -272,10 +272,10 @@ var _ = Describe("Responses", func() { response.Genres.Genre = genres }) - It("should match XML", func() { + It("should match .XML", func() { Expect(xml.Marshal(response)).To(MatchSnapshot()) }) - It("should match JSON", func() { + It("should match .JSON", func() { Expect(json.Marshal(response)).To(MatchSnapshot()) }) })