Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed Jul 6, 2024
1 parent a982ebb commit 96e80ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions tests/0-patch.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { test, patch, basename } = require('./fixtures')

module.exports = (async () => {
test(`${basename(__filename)} - patch`, async () => {
await patch()
})
})()
8 changes: 1 addition & 7 deletions tests/z_license.spec.js → tests/license.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
const { spawn } = require('child_process')
const { test, expect, ids, randomPort, basename, patch } = require('./fixtures')
const { test, expect, ids, randomPort, basename } = require('./fixtures')

module.exports = (async () => {
test.beforeAll(async () => {
patch()
})
test.afterAll(async () => {
patch({ restore: true })
})
test.describe.serial(async () => {
test(`${basename(__filename)} - Should show license message`, async ({ page, context, serviceWorker }) => {
const port = randomPort(1)[0]
Expand Down
7 changes: 7 additions & 0 deletions tests/z-patch.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { test, patch, basename } = require('./fixtures')

module.exports = (async () => {
test(`${basename(__filename)} - patch restore`, async () => {
await patch({ restore: true })
})
})()

0 comments on commit 96e80ba

Please sign in to comment.