debian-mirror-gitlab/spec/javascripts/droplab/constants_spec.js

40 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import * as constants from '~/droplab/constants';
2018-05-09 12:01:36 +05:30
describe('constants', function() {
describe('DATA_TRIGGER', function() {
2017-08-17 22:00:37 +05:30
it('should be `data-dropdown-trigger`', function() {
expect(constants.DATA_TRIGGER).toBe('data-dropdown-trigger');
});
});
2018-05-09 12:01:36 +05:30
describe('DATA_DROPDOWN', function() {
2017-08-17 22:00:37 +05:30
it('should be `data-dropdown`', function() {
expect(constants.DATA_DROPDOWN).toBe('data-dropdown');
});
});
2018-05-09 12:01:36 +05:30
describe('SELECTED_CLASS', function() {
2017-08-17 22:00:37 +05:30
it('should be `droplab-item-selected`', function() {
expect(constants.SELECTED_CLASS).toBe('droplab-item-selected');
});
});
2018-05-09 12:01:36 +05:30
describe('ACTIVE_CLASS', function() {
2017-08-17 22:00:37 +05:30
it('should be `droplab-item-active`', function() {
expect(constants.ACTIVE_CLASS).toBe('droplab-item-active');
});
});
2018-05-09 12:01:36 +05:30
describe('TEMPLATE_REGEX', function() {
2017-08-17 22:00:37 +05:30
it('should be a handlebars templating syntax regex', function() {
expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g);
});
});
2018-05-09 12:01:36 +05:30
describe('IGNORE_CLASS', function() {
2017-08-17 22:00:37 +05:30
it('should be `droplab-item-ignore`', function() {
expect(constants.IGNORE_CLASS).toBe('droplab-item-ignore');
});
});
});