Skip to content

Commit

Permalink
test: generates plaintext file
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Sep 28, 2024
1 parent a21172a commit e9fb327
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ describe.concurrent('Build', () => {
expect(ctx.files).toContain(`${ctx.folder}/test/fixtures/build/image.png`)
})

test.skip('Generates plaintext file', async ctx => {
ctx.files = await build(
test('Generates plaintext file', async ctx => {
const { files } = await build(
{
build: {
content: ['test/fixtures/**/beforeCreate.html'],
content: ['test/fixtures/build/beforeCreate.html'],
output: {
path: ctx.folder
},
Expand All @@ -189,9 +189,9 @@ describe.concurrent('Build', () => {
}
},
}
).then(({ files }) => files)
)

expect(ctx.files).toContain(`${ctx.folder}/build/beforeCreate.txt`)
expect(files).toContain(`${ctx.folder}/test/fixtures/build/${ctx.folder}/beforeCreate.txt`)
})

test('Expands <link> tags', async ctx => {
Expand Down

0 comments on commit e9fb327

Please sign in to comment.