Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 488a2a9

Browse files
update a test case
1 parent 094b992 commit 488a2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/views/reviews-view.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ describe('ReviewsView', function() {
235235
.addReviewThread(t => {
236236
t.thread(t0 => t0.id('abcd'));
237237
t.addComment(c =>
238-
c.id(0).path('dir/file0').position(10).bodyHTML('i have opinions.').author(a => a.login('user0').avatarUrl('user0.jpg')),
238+
c.id(0).path('dir/file0').position(10).bodyHTML('i have a bad windows file path.').author(a => a.login('user0').avatarUrl('user0.jpg')),
239239
);
240240
t.addComment(c =>
241241
c.id(1).path('file0').position(10).bodyHTML('i disagree.').author(a => a.login('user1').avatarUrl('user1.jpg')).isMinimized(true),
@@ -267,7 +267,7 @@ describe('ReviewsView', function() {
267267
const rootComment = thread.comments[0];
268268
const diffToFilePosition = new Map();
269269
diffToFilePosition.set(rootComment.position, rootComment.position);
270-
commentTranslations.set(rootComment.path, {diffToFilePosition});
270+
commentTranslations.set(path.normalize(rootComment.path), {diffToFilePosition});
271271
});
272272

273273
wrapper = shallow(buildApp({openIssueish, summaries, commentThreads, resolveThread, unresolveThread, addSingleComment, commentTranslations}));

0 commit comments

Comments
 (0)