lion/packages/ajax/test/interceptors/interceptors.test.js
Ahmet Yesil 879598506a Race condition fix for on the fly requests, improve cache implementation and tests
Co-authored-by: Goffert van Gool <ruphin@ruphin.net>
Co-authored-by: Martin Pool <martin.pool@ing.com>
2021-09-21 13:59:08 +02:00

16 lines
597 B
JavaScript

import { expect } from '@open-wc/testing';
import * as interceptors from '../../src/interceptors/index.js';
describe('interceptors interface', () => {
it('exposes the acceptLanguageRequestInterceptor function', () => {
expect(interceptors.acceptLanguageRequestInterceptor).to.be.a('Function');
});
it('exposes the createXsrfRequestInterceptor function', () => {
expect(interceptors.createXsrfRequestInterceptor).to.be.a('Function');
});
it('exposes the createCacheInterceptors function', () => {
expect(interceptors.createCacheInterceptors).to.be.a('Function');
});
});