Skip to content

Commit 44e1f7c

Browse files
committed
test: add for issue #255
1 parent 68ee0b2 commit 44e1f7c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

test/fixtures/.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"posthtml-custom-elements": {
3+
"defaultTag": "span"
4+
}
5+
}

test/test-cli.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ test('Transform html witch config in file', async t => {
6767
t.true(await pathExists(filename))
6868
t.is((await read('test/expected/output-config-file.html')), (await read(filename)))
6969
})
70+
71+
test('Transform html witch dot config in file', async t => {
72+
t.plan(2)
73+
const filename = tempfile('.html')
74+
await execa(cli, ['-i', 'test/fixtures/input.html', '-o', filename, '-c', 'test/fixtures/.config', '--auto-off'])
75+
t.true(await pathExists(filename))
76+
t.is((await read('test/expected/output-config-file.html')), (await read(filename)))
77+
})
7078
/*
7179
test('Transform html from folder', async t => {
7280
t.plan(2)

0 commit comments

Comments
 (0)