Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Add local browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Sep 25, 2021
1 parent 139e551 commit b87eab7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .airtap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
providers:
- airtap-playwright

browsers:
- name: chromium
- name: webkit
- name: firefox
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "index.js",
"scripts": {
"test": "standard && hallmark && (nyc -s node test | faucet) && nyc report",
"test-browsers-local": "airtap test/index.js",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev .",
Expand All @@ -25,6 +26,8 @@
},
"devDependencies": {
"after": "^0.8.2",
"airtap": "^4.0.3",
"airtap-playwright": "^1.0.1",
"dependency-check": "^4.1.0",
"faucet": "^0.0.1",
"hallmark": "^3.1.0",
Expand Down
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,13 @@ test('SubDb main function', function (t) {
})

t.test('cannot create sublevel while db is closing', function (t) {
t.plan(6)
t.plan(5)

levelup(memdown(), function (err, db) {
t.ifError(err, 'no open error')

db.close(function (err) {
t.ifError(err, 'no close error')
t.is(reachdown(sub, 'subleveldown').status, 'new')
t.is(reachdown(sub).status, 'closed')
})

Expand Down

0 comments on commit b87eab7

Please sign in to comment.