fix(deps): added missing optional deps

This commit is contained in:
Corentin Thomasset 2022-08-18 10:53:23 +02:00
parent 44d653b1f2
commit 49755909bd
No known key found for this signature in database
GPG key ID: 3103EB5E79496F9C
3 changed files with 9 additions and 3 deletions

View file

@ -64,6 +64,7 @@
"@types/bcryptjs": "^2.4.2",
"@types/crypto-js": "^4.1.1",
"@types/jsdom": "^16.2.15",
"@types/lodash": "^4.14.183",
"@types/mime-types": "^2.1.1",
"@types/node": "^16.11.49",
"@types/qrcode": "^1.4.3",
@ -93,6 +94,7 @@
"vite-plugin-pwa": "^0.11.13",
"vite-svg-loader": "^3.4.0",
"vitest": "^0.13.1",
"vue-tsc": "^0.31.4"
"vue-tsc": "^0.31.4",
"workbox-window": "^6.5.4"
}
}

View file

@ -6,6 +6,7 @@ specifiers:
'@types/bcryptjs': ^2.4.2
'@types/crypto-js': ^4.1.1
'@types/jsdom': ^16.2.15
'@types/lodash': ^4.14.183
'@types/mime-types': ^2.1.1
'@types/node': ^16.11.49
'@types/qrcode': ^1.4.3
@ -62,6 +63,7 @@ specifiers:
vue: ^3.2.37
vue-router: ^4.1.3
vue-tsc: ^0.31.4
workbox-window: ^6.5.4
dependencies:
'@it-tools/bip39': 0.0.4
@ -97,6 +99,7 @@ devDependencies:
'@types/bcryptjs': 2.4.2
'@types/crypto-js': 4.1.1
'@types/jsdom': 16.2.15
'@types/lodash': 4.14.183
'@types/mime-types': 2.1.1
'@types/node': 16.11.49
'@types/qrcode': 1.4.3
@ -127,6 +130,7 @@ devDependencies:
vite-svg-loader: 3.4.0
vitest: 0.13.1_uwxj23d3xojfwkqpytqc7pyhry
vue-tsc: 0.31.4_typescript@4.5.5
workbox-window: 6.5.4
packages:
@ -1679,7 +1683,6 @@ packages:
/@types/lodash/4.14.183:
resolution: {integrity: sha512-UXavyuxzXKMqJPEpFPri6Ku5F9af6ZJXUneHhvQJxavrEjuHkFp2YnDWHcxJiG7hk8ZkWqjcyNeW1s/smZv5cw==}
dev: false
/@types/markdown-it/12.2.3:
resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==}

View file

@ -1,10 +1,11 @@
import _ from 'lodash';
import { describe, expect, it } from 'vitest';
import { isNotThrowing } from './boolean';
describe('boolean utils', () => {
describe('isNotThrowing', () => {
it('should return if the call throws or false otherwise', () => {
expect(isNotThrowing(() => {})).to.eql(true);
expect(isNotThrowing(_.noop)).to.eql(true);
expect(
isNotThrowing(() => {
throw new Error();