Skip to content

Commit 41725a5

Browse files
committed
fix: ci test.js
1 parent 5235761 commit 41725a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const fs = require("fs")
2-
const { program } = require('commander')
1+
import { readFileSync } from "fs"
2+
import { program } from 'commander'
33

44
function compareDartFiles(f1, f2) {
5-
var content1 = fs.readFileSync(f1, { encoding: 'utf8' })
6-
var content2 = fs.readFileSync(f2, { encoding: 'utf8' })
5+
var content1 = readFileSync(f1, { encoding: 'utf8' })
6+
var content2 = readFileSync(f2, { encoding: 'utf8' })
77
content1 = content1.replace(/[\r\n\ ]/g, '')
88
content2 = content2.replace(/[\r\n\ ]/g, '')
99
if (content1 != content2) {

0 commit comments

Comments
 (0)