Skip to content

Commit b3f9593

Browse files
committed
Update test suite
1 parent 25aea55 commit b3f9593

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/submission.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ describe("submission", () => {
2323
);
2424
const normalizedBody = actual.body_text.replace(/\s+/g, " ");
2525
expect(normalizedBody).toEqual(
26-
`This is a submission for integration testing fa.js This account and art belongs to andrewneo, the artist of the work is tinderhoof. Original upload is here`,
26+
`This is a submission for integration testing fa.js This account and art belongs to Kauko, the artist of the work is Tinderhoof. Original upload is here`,
2727
);
2828
const normalizedHtml = actual.body_html.replace(/\s+/g, " ");
2929
expect(normalizedHtml).toEqual(
30-
`This is a submission for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account and art belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/${liveThumbDateStr}/andrewneo.gif" align="middle" title="andrewneo" alt="andrewneo">&nbsp;andrewneo</a>, the artist of the work is <a href="/user/tinderhoof" class="iconusername"><img src="//a.furaffinity.net/${liveThumbDateStr}/tinderhoof.gif" align="middle" title="tinderhoof" alt="tinderhoof">&nbsp;tinderhoof</a>. <a class="auto_link " href="https://www.furaffinity.net/view/23617101/">Original upload is here</a>`,
30+
`This is a submission for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account and art belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/1563504911/andrewneo.gif" title="andrewneo" alt="andrewneo">&nbsp;<span class="c-usernameBlockSimple username-underlined"><span class="c-usernameBlockSimple__displayName" title=" andrewneo ">Kauko</span></span></a>, the artist of the work is <a href="/user/tinderhoof" class="iconusername"><img src="//a.furaffinity.net/1765774950/tinderhoof.gif" title="tinderhoof" alt="tinderhoof">&nbsp;<span class="c-usernameBlockSimple username-underlined"><span class="c-usernameBlockSimple__displayName" title=" tinderhoof ">Tinderhoof</span></span></a>. <a class="auto_link " href="https://www.furaffinity.net/view/23617101/">Original upload is here</a>`,
3131
);
3232
// 2024-10-26T22:36:00
3333
expect(actual.when).toBeWithinOneMinuteOf(getDateFromEpoch(1730007360000));
@@ -104,11 +104,11 @@ describe("submission", () => {
104104
);
105105
const normalizedBody = actual.body_text.replace(/\s+/g, " ");
106106
expect(normalizedBody).toEqual(
107-
`This is a "story" for integration testing fa.js This account belongs to andrewneo, this writing was written by hand this time! >:C`,
107+
`This is a "story" for integration testing fa.js This account belongs to Kauko, this writing was written by hand this time! >:C`,
108108
);
109109
const normalizedHtml = actual.body_html.replace(/\s+/g, " ");
110110
expect(normalizedHtml).toEqual(
111-
`This is a "story" for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/${liveThumbDateStr}/andrewneo.gif" align="middle" title="andrewneo" alt="andrewneo">&nbsp;andrewneo</a>, this writing was written by hand this time! &gt;:C`,
111+
`This is a "story" for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/1563504911/andrewneo.gif" title="andrewneo" alt="andrewneo">&nbsp;<span class="c-usernameBlockSimple username-underlined"><span class="c-usernameBlockSimple__displayName" title=" andrewneo ">Kauko</span></span></a>, this writing was written by hand this time! &gt;:C`,
112112
);
113113
// 2024-10-26T22:45:00
114114
expect(actual.when).toBeWithinOneMinuteOf(getDateFromEpoch(1730007900000));
@@ -136,11 +136,11 @@ describe("submission", () => {
136136
);
137137
const normalizedBody = actual.body_text.replace(/\s+/g, " ");
138138
expect(normalizedBody).toEqual(
139-
`This is audio for integration testing fa.js This account belongs to andrewneo, this recording was recorded by Kauko.`,
139+
`This is audio for integration testing fa.js This account belongs to Kauko, this recording was recorded by Kauko.`,
140140
);
141141
const normalizedHtml = actual.body_html.replace(/\s+/g, " ");
142142
expect(normalizedHtml).toEqual(
143-
`This is audio for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/${liveThumbDateStr}/andrewneo.gif" align="middle" title="andrewneo" alt="andrewneo">&nbsp;andrewneo</a>, this recording was recorded by Kauko.`,
143+
`This is audio for integration testing <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">fa.js</a><br> <br> This account belongs to <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/1563504911/andrewneo.gif" title="andrewneo" alt="andrewneo">&nbsp;<span class="c-usernameBlockSimple username-underlined"><span class="c-usernameBlockSimple__displayName" title=" andrewneo ">Kauko</span></span></a>, this recording was recorded by Kauko.`,
144144
);
145145
// 2024-10-26T22:54:00
146146
expect(actual.when).toBeWithinOneMinuteOf(getDateFromEpoch(1730008440000));

tests/user.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ describe("user", () => {
2525
// Note: the classic theme has extra crap - eventually this should get cleaned up
2626
expect(normalize(actual.header_text)).toEqual(
2727
expect.stringContaining(
28-
`This is a read-only test account for FA.js Maintained by andrewneo`,
28+
`This is a read-only test account for FA.js Maintained by Kauko`,
2929
),
3030
);
3131
expect(normalize(actual.header_html)).toEqual(
3232
expect.stringContaining(
33-
`This is a read-only test account for <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">FA.js</a><br> <br> Maintained by <a href="/user/andrewneo" class="iconusername"><img src="//a.furaffinity.net/${liveThumbDateStr}/andrewneo.gif" align="middle" title="andrewneo" alt="andrewneo">&nbsp;andrewneo</a>`,
33+
`This is a read-only test account for <a class="auto_link external" href="https://github.com/cheeplusplus/fa.js" rel="nofollow ugc noreferrer noopener">FA.js</a>`,
3434
),
3535
);
3636
// these aren't parsed so just make sure we're in the right place

0 commit comments

Comments
 (0)