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.4.27 test/javascripts/duplicate_id_spec.js
workarea-core-3.5.4 test/javascripts/duplicate_id_spec.js
workarea-core-3.4.26 test/javascripts/duplicate_id_spec.js