Skip to content

Commit

Permalink
fixup! test: consolidate utf8 text fixtures in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Nov 14, 2023
1 parent 8937b68 commit f79a603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/common/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function readFixtureKeys(enc, ...names) {
// This should be in sync with test/fixtures/utf8_test_text.txt.
// We copy them here as a string because this is supposed to be used
// in fs API tests.
const utf8TestText ='永和九年,嵗在癸丑,暮春之初,會於會稽山隂之蘭亭,脩稧事也。' +
const utf8TestText = '永和九年,嵗在癸丑,暮春之初,會於會稽山隂之蘭亭,脩稧事也。' +
'羣賢畢至,少長咸集。此地有崇山峻領,茂林脩竹;又有清流激湍,' +
'暎帶左右。引以為流觴曲水,列坐其次。雖無絲竹管弦之盛,一觴一詠,' +
'亦足以暢敘幽情。是日也,天朗氣清,恵風和暢;仰觀宇宙之大,' +
Expand All @@ -54,6 +54,6 @@ module.exports = {
readKeys: readFixtureKeys,
utf8TestText,
get utf8TestTextPath() {
return fixturesPath('utf8_test_text.txt')
}
return fixturesPath('utf8_test_text.txt');
},
};

0 comments on commit f79a603

Please sign in to comment.