mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-15 04:05:35 +00:00
test: add more tests
This commit is contained in:
21
test/unit/middlewares.js
Normal file
21
test/unit/middlewares.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-env node, mocha */
|
||||
|
||||
const { assert } = require('chai');
|
||||
|
||||
const response = require('../../lib/middleware/response');
|
||||
const serializer = require('../../lib/middleware/serializer');
|
||||
const signer = require('../../lib/middleware/signer');
|
||||
|
||||
describe('Middlewares', () => {
|
||||
describe('Response Middleware', () => {
|
||||
it('should throw with no unspported protocol version', () => assert.throws(() => response('H003')));
|
||||
});
|
||||
describe('Signer Middleware', () => {
|
||||
it('should throw with no unspported protocol version', () => assert.throws(() => signer('H003')));
|
||||
});
|
||||
describe('Signer Middleware', () => {
|
||||
it('should throw with no unspported protocol version', () => assert.throws(() => serializer('H003')));
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user