mirror of
https://github.com/cupcakearmy/occulto.git
synced 2025-09-01 07:20:40 +00:00
add different import options
This commit is contained in:
18
test/main.js
18
test/main.js
@@ -1,7 +1,23 @@
|
||||
const { describe, it } = require('mocha')
|
||||
const a = require('assert')
|
||||
|
||||
const { RSA, AES } = require('../').default
|
||||
|
||||
describe('Check imports', () => {
|
||||
it('default', () => {
|
||||
const Occulto = require('../').default
|
||||
|
||||
a.notStrictEqual(undefined, Occulto.RSA)
|
||||
a.notStrictEqual(undefined, Occulto.AES)
|
||||
})
|
||||
it('normal', () => {
|
||||
const {RSA, AES} = require('../')
|
||||
|
||||
a.notStrictEqual(undefined, RSA)
|
||||
a.notStrictEqual(undefined, AES)
|
||||
})
|
||||
})
|
||||
|
||||
const { RSA, AES } = require('../')
|
||||
|
||||
describe('Asymmetric', () => {
|
||||
|
||||
|
Reference in New Issue
Block a user