2017-04-07 09:57:03 -04:00
|
|
|
import * as constants from '~/droplab/constants';
|
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('constants', function() {
|
|
|
|
describe('DATA_TRIGGER', function() {
|
2017-04-07 09:57:03 -04:00
|
|
|
it('should be `data-dropdown-trigger`', function() {
|
|
|
|
expect(constants.DATA_TRIGGER).toBe('data-dropdown-trigger');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('DATA_DROPDOWN', function() {
|
2017-04-07 09:57:03 -04:00
|
|
|
it('should be `data-dropdown`', function() {
|
|
|
|
expect(constants.DATA_DROPDOWN).toBe('data-dropdown');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('SELECTED_CLASS', function() {
|
2017-04-07 09:57:03 -04:00
|
|
|
it('should be `droplab-item-selected`', function() {
|
|
|
|
expect(constants.SELECTED_CLASS).toBe('droplab-item-selected');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('ACTIVE_CLASS', function() {
|
2017-04-07 09:57:03 -04:00
|
|
|
it('should be `droplab-item-active`', function() {
|
|
|
|
expect(constants.ACTIVE_CLASS).toBe('droplab-item-active');
|
|
|
|
});
|
|
|
|
});
|
2017-04-12 04:18:22 -04:00
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('TEMPLATE_REGEX', function() {
|
2017-04-12 04:18:22 -04:00
|
|
|
it('should be a handlebars templating syntax regex', function() {
|
|
|
|
expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g);
|
|
|
|
});
|
|
|
|
});
|
2017-04-24 06:45:05 -04:00
|
|
|
|
2018-03-29 13:55:53 -04:00
|
|
|
describe('IGNORE_CLASS', function() {
|
2017-04-19 17:18:39 -04:00
|
|
|
it('should be `droplab-item-ignore`', function() {
|
|
|
|
expect(constants.IGNORE_CLASS).toBe('droplab-item-ignore');
|
|
|
|
});
|
|
|
|
});
|
2017-04-07 09:57:03 -04:00
|
|
|
});
|