There was an error while loading. Please reload this page.
1 parent 5235761 commit 41725a5Copy full SHA for 41725a5
test/test.js
@@ -1,9 +1,9 @@
1
-const fs = require("fs")
2
-const { program } = require('commander')
+import { readFileSync } from "fs"
+import { program } from 'commander'
3
4
function compareDartFiles(f1, f2) {
5
- var content1 = fs.readFileSync(f1, { encoding: 'utf8' })
6
- var content2 = fs.readFileSync(f2, { encoding: 'utf8' })
+ var content1 = readFileSync(f1, { encoding: 'utf8' })
+ var content2 = readFileSync(f2, { encoding: 'utf8' })
7
content1 = content1.replace(/[\r\n\ ]/g, '')
8
content2 = content2.replace(/[\r\n\ ]/g, '')
9
if (content1 != content2) {
0 commit comments