Skip to content

Commit fe51759

Browse files
committed
Update dependnecies
1 parent 0f2b2ef commit fe51759

4 files changed

Lines changed: 901 additions & 916 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Test
22
"on":
33
push: null
44
pull_request: null
5-
env:
6-
FORCE_COLOR: 2
75
jobs:
86
full:
97
name: Node.js 16 Full
@@ -15,10 +13,13 @@ jobs:
1513
uses: actions/setup-node@v2
1614
with:
1715
node-version: 16
16+
cache: yarn
1817
- name: Install dependencies
19-
uses: bahmutov/npm-install@v1
18+
run: yarn install --frozen-lockfile
2019
- name: Run tests
2120
run: yarn test
21+
env:
22+
FORCE_COLOR: 2
2223
short:
2324
runs-on: ubuntu-latest
2425
strategy:
@@ -34,7 +35,10 @@ jobs:
3435
uses: actions/setup-node@v2
3536
with:
3637
node-version: ${{ matrix.node-version }}
38+
cache: yarn
3739
- name: Install dependencies
38-
uses: bahmutov/npm-install@v1
40+
run: yarn install --frozen-lockfile
3941
- name: Run unit tests
4042
run: npx jest
43+
env:
44+
FORCE_COLOR: 2

package.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@
2727
"postcss": "^8.3.3"
2828
},
2929
"devDependencies": {
30-
"@logux/eslint-config": "^45.4.4",
31-
"clean-publish": "^2.2.0",
32-
"eslint": "^7.28.0",
30+
"@logux/eslint-config": "^46.0.0",
31+
"clean-publish": "^3.4.2",
32+
"eslint": "^8.0.1",
3333
"eslint-config-standard": "^16.0.3",
34-
"eslint-plugin-import": "^2.23.4",
35-
"eslint-plugin-jest": "^24.3.6",
34+
"eslint-plugin-import": "^2.25.2",
35+
"eslint-plugin-jest": "^25.2.2",
3636
"eslint-plugin-node": "^11.1.0",
3737
"eslint-plugin-prefer-let": "^1.1.0",
3838
"eslint-plugin-promise": "^5.1.0",
3939
"eslint-plugin-security": "^1.4.0",
40-
"eslint-plugin-unicorn": "^33.0.1",
41-
"jest": "^27.0.4",
42-
"lint-staged": "^11.0.0",
43-
"postcss": "^8.3.3",
44-
"postcss-parser-tests": "^8.3.5",
45-
"postcss-sharec-config": "^0.4.1",
46-
"prettier": "^2.2.1",
47-
"simple-git-hooks": "^2.4.1"
40+
"eslint-plugin-unicorn": "^37.0.1",
41+
"jest": "^27.3.1",
42+
"lint-staged": "^11.2.3",
43+
"postcss": "^8.3.9",
44+
"postcss-parser-tests": "^8.3.7",
45+
"postcss-sharec-config": "^0.5.1",
46+
"prettier": "^2.4.1",
47+
"simple-git-hooks": "^2.6.1"
4848
},
4949
"simple-git-hooks": {
5050
"pre-commit": "npx lint-staged"
@@ -76,6 +76,9 @@
7676
},
7777
"sharec": {
7878
"config": "postcss-sharec-config",
79-
"version": "0.4.1"
79+
"version": "0.5.1"
80+
},
81+
"clean-publish": {
82+
"cleanDocs": true
8083
}
8184
}

test/parse.test.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,61 +12,61 @@ eachTest((name, css, json) => {
1212
})
1313

1414
it('fixes unclosed blocks in safe mode', () => {
15-
expect(parse('@media (screen) { a {\n').toString()).toEqual(
15+
expect(parse('@media (screen) { a {\n').toString()).toBe(
1616
'@media (screen) { a {\n}}'
1717
)
18-
expect(parse('a { color').toString()).toEqual('a { color}')
19-
expect(parse('a { color: black').first.first.prop).toEqual('color')
18+
expect(parse('a { color').toString()).toBe('a { color}')
19+
expect(parse('a { color: black').first.first.prop).toBe('color')
2020
})
2121

2222
it('fixes unnecessary block close in safe mode', () => {
2323
let root = parse('a {\n} }')
24-
expect(root.first.toString()).toEqual('a {\n}')
25-
expect(root.raws.after).toEqual(' }')
24+
expect(root.first.toString()).toBe('a {\n}')
25+
expect(root.raws.after).toBe(' }')
2626
})
2727

2828
it('fixes unclosed comment in safe mode', () => {
2929
let root = parse('a { /* b ')
30-
expect(root.toString()).toEqual('a { /* b */}')
31-
expect(root.first.first.text).toEqual('b')
30+
expect(root.toString()).toBe('a { /* b */}')
31+
expect(root.first.first.text).toBe('b')
3232
})
3333

3434
it('fixes column and semicolumn case', () => {
35-
expect(parse('a{:;}').toString()).toEqual('a{}')
35+
expect(parse('a{:;}').toString()).toBe('a{}')
3636
})
3737

3838
it('fixes unclosed quote in safe mode', () => {
39-
expect(parse('a { content: "b').first.first.value).toEqual('"b')
39+
expect(parse('a { content: "b').first.first.value).toBe('"b')
4040
})
4141

4242
it('fixes unclosed bracket', () => {
43-
expect(parse(':not(one() { }').toString()).toEqual(':not(one() { }')
43+
expect(parse(':not(one() { }').toString()).toBe(':not(one() { }')
4444
})
4545

4646
it('fixes property without value in safe mode', () => {
4747
let root = parse('a { color: white; one }')
4848
expect(root.first.nodes).toHaveLength(1)
4949
expect(root.first.raws.semicolon).toBe(true)
50-
expect(root.first.raws.after).toEqual(' one ')
50+
expect(root.first.raws.after).toBe(' one ')
5151
})
5252

5353
it('fixes 2 properties in safe mode', () => {
5454
let root = parse('a { color one: white; one }')
5555
expect(root.first.nodes).toHaveLength(1)
56-
expect(root.first.first.prop).toEqual('color')
57-
expect(root.first.first.raws.between).toEqual(' one: ')
56+
expect(root.first.first.prop).toBe('color')
57+
expect(root.first.first.raws.between).toBe(' one: ')
5858
})
5959

6060
it('fixes nameless at-rule in safe mode', () => {
6161
let root = parse('@')
62-
expect(root.first.type).toEqual('atrule')
63-
expect(root.first.name).toEqual('')
62+
expect(root.first.type).toBe('atrule')
63+
expect(root.first.name).toBe('')
6464
})
6565

6666
it('fixes property without semicolon in safe mode', () => {
6767
let root = parse('a { one: 1 two: 2 }')
6868
expect(root.first.nodes).toHaveLength(2)
69-
expect(root.toString()).toEqual('a { one: 1; two: 2 }')
69+
expect(root.toString()).toBe('a { one: 1; two: 2 }')
7070
})
7171

7272
it('does not fall on missed semicolon in IE filter', () => {
@@ -77,10 +77,10 @@ it('does not fall on missed semicolon in IE filter', () => {
7777

7878
it('fixes double colon in safe mode', () => {
7979
let root = parse('a { one:: 1 }')
80-
expect(root.first.first.value).toEqual(': 1')
80+
expect(root.first.first.value).toBe(': 1')
8181
})
8282

8383
it('fixes colon instead of semicolon', () => {
8484
let root = parse('a { one: 1: } b { one: 1 : }')
85-
expect(root.toString()).toEqual('a { one: 1: } b { one: 1 : }')
85+
expect(root.toString()).toBe('a { one: 1: } b { one: 1 : }')
8686
})

0 commit comments

Comments
 (0)