diff --git a/tests/commands/__snapshots__/warn.test.ts.snap b/tests/commands/__snapshots__/warn.test.ts.snap index c6685d0..6267972 100644 --- a/tests/commands/__snapshots__/warn.test.ts.snap +++ b/tests/commands/__snapshots__/warn.test.ts.snap @@ -1,6 +1,20 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Execute EXPECT user to be warned 1`] = ` +exports[`Execute EXPECT user to be warned: savedAudit 1`] = ` +{ + "AuditId": Any, + "AuditType": 1, + "Id": Any, + "ModeratorId": "moderatorId", + "Reason": "Test reason", + "ServerId": "guildId", + "UserId": "userId", + "WhenCreated": Any, + "WhenUpdated": Any, +} +`; + +exports[`Execute EXPECT user to be warned: sentEmbeds 1`] = ` [ { "color": 3166394, @@ -22,17 +36,3 @@ exports[`Execute EXPECT user to be warned 1`] = ` }, ] `; - -exports[`Execute EXPECT user to be warned 2`] = ` -{ - "AuditId": Any, - "AuditType": 1, - "Id": Any, - "ModeratorId": "moderatorId", - "Reason": "Test reason", - "ServerId": "guildId", - "UserId": "userId", - "WhenCreated": Any, - "WhenUpdated": Any, -} -`; diff --git a/tests/commands/warn.test.ts b/tests/commands/warn.test.ts index 32d1eff..e7ef10b 100644 --- a/tests/commands/warn.test.ts +++ b/tests/commands/warn.test.ts @@ -108,7 +108,7 @@ describe('Execute', () => { expect(logChannel.send).toHaveBeenCalledTimes(1); expect(sentEmbeds).toBeDefined(); - expect(sentEmbeds).toMatchSnapshot(); + expect(sentEmbeds).toMatchSnapshot("sentEmbeds"); expect(Audit.prototype.Save).toHaveBeenCalledWith(Audit, expect.any(Audit)); @@ -117,7 +117,7 @@ describe('Execute', () => { AuditId: expect.any(String), WhenCreated: expect.any(Date), WhenUpdated: expect.any(Date) - }); + }, "savedAudit"); }); test.todo("GIVEN interaction.guild is null, EXPECT nothing to happen");