Skip to content

Commit 032e071

Browse files
committed
Updated test
1 parent 9e4ea60 commit 032e071

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugin/commands/cdn/purge_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ var _ = Describe("Cdn purge", func() {
4343
Expect(fakeUI.Outputs()).To(ContainSubstring("Path"))
4444
Expect(fakeUI.Outputs()).To(ContainSubstring("Saved"))
4545
Expect(fakeUI.Outputs()).To(ContainSubstring("Status"))
46-
Expect(fakeUI.Outputs()).To(ContainSubstring("2023-04-28 12:06:27"))
4746
Expect(fakeUI.Outputs()).To(ContainSubstring("/example/"))
4847
Expect(fakeUI.Outputs()).To(ContainSubstring("UNSAVED"))
4948
Expect(fakeUI.Outputs()).To(ContainSubstring("SUCCESS"))
5049
})
5150
It("return cdn purge in format json", func() {
5251
err := testhelpers.RunCobraCommand(cliCommand.Command, "123456789", "/example/", "--output", "json")
5352
Expect(err).NotTo(HaveOccurred())
54-
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Date": "2023-04-28 12:06:27",`))
53+
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Date":`))
5554
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Path": "/example/",`))
5655
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Saved": "UNSAVED",`))
5756
Expect(fakeUI.Outputs()).To(ContainSubstring(`"Status": "SUCCESS"`))

0 commit comments

Comments
 (0)