mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-19 22:25:09 +02:00
20 lines
492 B
JavaScript
20 lines
492 B
JavaScript
|
import { expect } from 'chai';
|
||
|
import WrappedInput from './wrapped-input';
|
||
|
import { DEFAULT_CLASSNAMES, DEFAULT_CONFIG } from '../constants';
|
||
|
|
||
|
describe('WrappedInput', () => {
|
||
|
let instance;
|
||
|
let choicesInstance;
|
||
|
let choicesElement;
|
||
|
|
||
|
beforeEach(() => {
|
||
|
choicesInstance = {
|
||
|
config: {
|
||
|
...DEFAULT_CONFIG,
|
||
|
},
|
||
|
};
|
||
|
choicesElement = document.createElement('input');
|
||
|
instance = new WrappedInput(choicesInstance, choicesElement, DEFAULT_CLASSNAMES);
|
||
|
});
|
||
|
});
|