Skip to content

Commit

Permalink
test(tools): fix issue related to CR/LF line breaks in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Blaginov committed Mar 9, 2023
1 parent b52e1c8 commit 370b352
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,28 +445,28 @@ describe('ProtobufVisitor', function () {
'./data/concerto.metamodel.v0_4_0.proto'
),
'utf8'
);
).replace(/\r\n/g, '\n');
const producedCommonmarkProtobuf = fs.readFileSync(
path.resolve(
__dirname,
'./data/org.accordproject.commonmark.v0_5_0.proto'
),
'utf8'
);
).replace(/\r\n/g, '\n');
const producedApapPartyProtobuf = fs.readFileSync(
path.resolve(
__dirname,
'./data/org.accordproject.party.v0_2_0.proto'
),
'utf8'
);
).replace(/\r\n/g, '\n');
const producedApapProtocolProtobuf = fs.readFileSync(
path.resolve(
__dirname,
'./data/org.accordproject.protocol.v1_0_0.proto'
),
'utf8'
);
).replace(/\r\n/g, '\n');

assert.equal(
producedMetamodelProtobuf,
Expand Down

0 comments on commit 370b352

Please sign in to comment.