Skip to content

Commit

Permalink
alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 4, 2024
1 parent 3bccada commit 620dfdf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# CHANGES

## Unreleased
### Unreleased

### 3.0.0-alpha.3

-


[3.0.0-alpha.3]: https://github.com/NicTool/api/releases/tag/3.0.0-alpha.3
3 changes: 1 addition & 2 deletions conf.d/http.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

default:
host: localhost
port: 3000
cookie:
# https://hapi.dev/module/cookie/api/?v=12.0.1
name: sid-nictool
password: af1b926a5e21f535c4f5b6c42941c4cf
ttl: 3600000 # 1 hour
ttl: 3600000 # 1 hour
# domain:
path: /
clearInvalid: true
Expand Down
2 changes: 1 addition & 1 deletion conf.d/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default:
# settings below this line override default settings
production:
host: mysql
password: "********"
password: '********'

# used for CI testing (GitHub Actions workflows)
test:
Expand Down
8 changes: 6 additions & 2 deletions lib/permission.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import assert from 'node:assert/strict'
import { describe, it, after, before } from 'node:test'

import Permission from './permission.js'
import Group from './group.js'
import User from './user.js'
import permTestCase from './test/permission.json' with { type: 'json' }
import Permission from './permission.js'

import groupTestCase from './test/group.json' with { type: 'json' }
import userTestCase from './test/user.json' with { type: 'json' }
import permTestCase from './test/permission.json' with { type: 'json' }

before(async () => {
await Group.create(groupTestCase)
await User.create(userTestCase)
})

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"format": "npm run lint:fix && npm run prettier:fix",
"lint": "npx eslint *.js **/*.js",
"lint:fix": "npm run lint -- --fix",
"prettier": "npx prettier *.js lib routes test html --check",
"prettier:fix": "npm run prettier -- --write",
"prettier": "npx prettier *.js conf.d lib routes html --check",
"prettier:fix": "npx prettier *.js conf.d lib routes html --write",
"start": "NODE_ENV=production node ./server",
"develop": "NODE_ENV=development node ./server",
"test": "./test.sh",
Expand Down

0 comments on commit 620dfdf

Please sign in to comment.