Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Apr 3, 2024
1 parent bdbc4bf commit 6ffbcb8
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion test/slack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ describe("Slack", () => {
expect(slackMessagePayload).to.be.eql({
channel: "something",
text: "New Nostr Event to moderate requested by pubkey `npub123`",
unfurl_links: false,
unfurl_media: false,
blocks: [
{
type: "section",
Expand All @@ -57,13 +59,16 @@ describe("Slack", () => {
},
},
{
type: "rich_text",
block_id: "reporterText",
type: "rich_text",
elements: [
{
type: "rich_text_preformatted",
elements: [
{
style: {
italic: true,
},
text: "No text provided by reporter",
type: "text",
},
Expand All @@ -73,8 +78,34 @@ describe("Slack", () => {
],
},
{
type: "section",
text: {
type: "plain_text",
text: "Offending text:",
},
},
{
block_id: "reportedText",
type: "rich_text",
elements: [
{
border: 0,
elements: [
{
style: {
italic: true,
},
text: "Foobar",
type: "text",
},
],
type: "rich_text_preformatted",
},
],
},
{
block_id: "reportedEvent",
type: "rich_text",
elements: [
{
type: "rich_text_preformatted",
Expand Down

0 comments on commit 6ffbcb8

Please sign in to comment.