Skip to content

Commit

Permalink
[ffigen] Ignore formatting in flutter template test (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes authored Apr 4, 2024
1 parent 301cf88 commit 630a7a3
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ void main() {
],
workingDirectory: tempDirUri,
);
// Don't fail on formatter differences in template.
await runProcess(
executable: 'dart',
arguments: [
'format',
bindingsGeneratedUri.toFilePath(),
],
workingDirectory: tempDirUri,
);
await copyFile(
source: bindingsGeneratedUri,
target: bindingsGeneratedCopyUri,
Expand All @@ -60,7 +69,7 @@ void main() {
final originalBindings = await readFileAsString(bindingsGeneratedCopyUri);
final regeneratedBindings = await readFileAsString(bindingsGeneratedUri);

expect(originalBindings, regeneratedBindings);
expect(regeneratedBindings, originalBindings);
});
}

Expand Down

0 comments on commit 630a7a3

Please sign in to comment.