Sha256: 02ab9f6cd96c1a6a1e0d692635cf013077a013cc941dd18df22b0b23e96d6928

Contents?: true

Size: 738 Bytes

Versions: 43

Compression:

Stored size: 738 Bytes

Contents

//= require workarea/core/modules/environment
//= require workarea/core/modules/string
//= require workarea/core/modules/duplicate_id

(function () {
    'use strict';

    describe('WORKAREA.duplicateId', function () {
        describe('init', function () {
            it('throws error on duplicate ids', function () {
                this.fixtures = fixture.load('duplicate_id_fail.html');
                expect(WORKAREA.duplicateId.init).to.throw(Error, /foo|bar/);
            });

            it('should allow for empty ID values', function () {
                this.fixtures = fixture.load('duplicate_id_pass.html');
                expect(WORKAREA.duplicateId.init).to.not.throw(Error);
            });
        });
    });
}());

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.26 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.45 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.25 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.23 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.44 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.22 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.43 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.21 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.42 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.20 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.41 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.19 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.40 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.18 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.39 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.17 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.38 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.16 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.37 test/javascripts/duplicate_id_spec.js