mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Update tests
This commit is contained in:
@@ -11,7 +11,7 @@ it("should add commentID", () => {
|
||||
},
|
||||
};
|
||||
withSetCommentID(fakePym as any);
|
||||
expect(location.toString()).toBe("http://localhost/?commentId=comment-id");
|
||||
expect(location.toString()).toBe("http://localhost/?commentID=comment-id");
|
||||
window.history.replaceState(previousState, document.title, previousLocation);
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ it("should remove commentID", () => {
|
||||
window.history.replaceState(
|
||||
previousState,
|
||||
document.title,
|
||||
"http://localhost/?commentId=comment-id"
|
||||
"http://localhost/?commentID=comment-id"
|
||||
);
|
||||
const fakePym = {
|
||||
onMessage: (type: string, callback: () => void) => {
|
||||
|
||||
Reference in New Issue
Block a user