            var str = 'error';
            var noteType = 'small';
            calendar.label = 'I have a label';
            calendar.type = str;
            calendar.noteType = noteType;

            setTimeout(function () {
              expect(
                calendar.querySelector('label').classList.contains(str)
              ).to.equal(true);
              expect(
                calendar.querySelector('input').classList.contains(str)
              ).to.equal(true);
              expect(
           