Skip to content

Commit 4f5346e

Browse files
committed
Clean up code
1 parent 989361e commit 4f5346e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/parse.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { equal, is, match, not, throws } from 'uvu/assert'
12
import { testPath, jsonify, eachTest } from 'postcss-parser-tests'
23
import { readFileSync } from 'fs'
34
import { resolve } from 'path'
45
import { test } from 'uvu'
5-
import { equal, is, match, not, throws } from 'uvu/assert'
66

77
import { Declaration, AtRule, parse, Root, Rule } from '../lib/postcss.js'
88

@@ -21,15 +21,15 @@ eachTest((name, css, json) => {
2121

2222
test('parses UTF-8 BOM', () => {
2323
let css = parse('\uFEFF@host { a {\f} }')
24-
is(css.nodes[0].raws.before, '')
24+
equal(css.nodes[0].raws.before, '')
2525
})
2626

27-
test('should has true at `hasBOM` property', () => {
27+
test('should has true at hasBOM property', () => {
2828
let css = parse('\uFEFF@host { a {\f} }')
2929
is(css.first?.source?.input.hasBOM, true)
3030
})
3131

32-
test('should has false at `hasBOM` property', () => {
32+
test('should has false at hasBOM property', () => {
3333
let css = parse('@host { a {\f} }')
3434
is(css.first?.source?.input.hasBOM, false)
3535
})

0 commit comments

Comments
 (0)