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.15 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.36 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.14 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.35 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.13 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.34 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.12 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.33 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.11 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.10 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.32 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.9 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.31 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.8 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.30 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.7 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.29 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.6 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.28 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.5 test/javascripts/duplicate_id_spec.js