Skip to content

Commit 15fa3cb

Browse files
committed
wip
1 parent 4db0d96 commit 15fa3cb

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

__tests__/dark-mode.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ const utils = require('./util/_utils')(__filename)
44
test('only dark variables with default options and `class` mode', async () => {
55
expect(
66
await utils.diffOnly({
7-
purge: {
8-
enabled: true,
9-
content: [utils.content()],
10-
},
7+
content: [utils.content()],
118

129
darkMode: 'class',
1310
theme: {

__tests__/extend-colors.test.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ test('extendColors with forceRGB', async () => {
137137
expect(
138138
await utils.diffOnly({
139139
corePlugins: ['textColor', 'textOpacity', 'backgroundColor', 'backgroundOpacity'],
140-
purge: {
141-
enabled: true,
142-
content: [utils.content()],
143-
},
140+
content: [utils.content()],
144141

145142
darkMode: false,
146143
theme: {
@@ -268,11 +265,7 @@ test('extendColors (readme)', async () => {
268265
expect(
269266
await utils.diffOnly({
270267
corePlugins: ['textColor', 'textOpacity', 'backgroundColor', 'backgroundOpacity'],
271-
purge: {
272-
enabled: true,
273-
content: [utils.content()],
274-
},
275-
268+
content: [utils.content()],
276269
darkMode: false,
277270
theme: {
278271
screens: false,
@@ -359,11 +352,7 @@ test('extendColors with forceRGB (readme)', async () => {
359352
expect(
360353
await utils.diffOnly({
361354
corePlugins: ['textColor', 'textOpacity', 'backgroundColor', 'backgroundOpacity'],
362-
purge: {
363-
enabled: true,
364-
content: [utils.content()],
365-
},
366-
355+
content: [utils.content()],
367356
darkMode: false,
368357
theme: {
369358
screens: false,

__tests__/force-rgb.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ test('forceRGB option (enabled)', async () => {
77
await utils.diffOnly({
88
corePlugins: ['textColor', 'textOpacity', 'backgroundColor', 'backgroundOpacity'],
99
content: [utils.content()],
10-
1110
darkMode: false,
1211
theme: {
1312
screens: false,

__tests__/util/_utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ module.exports = (contentFile) => {
2828
.replace(/@@([^@@]*)@@/g, '\n---\n') // In between @@ signs
2929
.replace(/[-+] __REMOVE_ME__\n/g, '')
3030
.replace(/\+ /g, '+ ')
31-
.replace(/\+ \}\n([\s]*)\+/g, '\+ \}\n$1\+')
31+
// .replace(/\+ \}\n([\s]*)\+/g, '\+ \}\n$1\+')
32+
.replace(/\+(\s+?)\}\n(\s+?)\+/g, '\\+$1\\}')
3233
.replace(/Snapshot Diff:\n/g, '')
3334
.replace(/"/g, '\'')
3435
.split('\n')

0 commit comments

Comments
 (0)