Modifying the unit test to fix errors
Modifying the unit test to fix errors

Modify the unit test to set the string variables which are used for
calls to attribute.setSubmitMode and attribute.setRequiredLevel to use
const strings as strings declared as var or let fail.

This is by design for string union types in TypeScript - see:
https://github.com/Microsoft/TypeScript/issues/9489

markogresak/DefinitelyTyped,chrootsu/DefinitelyTyped,jimthedev/DefinitelyTyped,one-pieces/DefinitelyTyped,isman-usoh/DefinitelyTyped,amir-arad/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,ashwinr/DefinitelyTyped,alexdresko/DefinitelyTyped,progre/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,magny/DefinitelyTyped,benliddicott/DefinitelyTyped,georgemarshall/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,YousefED/DefinitelyTyped,rolandzwaga/DefinitelyTyped,zuzusik/DefinitelyTyped,ashwinr/DefinitelyTyped,minodisk/DefinitelyTyped,YousefED/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,QuatroCode/DefinitelyTyped,arusakov/DefinitelyTyped,smrq/DefinitelyTyped,zuzusik/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,abbasmhd/DefinitelyTyped,benishouga/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,johan-gorter/DefinitelyTyped,benishouga/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,rolandzwaga/DefinitelyTyped,dsebastien/DefinitelyTyped,jimthedev/DefinitelyTyped,zuzusik/DefinitelyTyped,smrq/DefinitelyTyped,johan-gorter/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,aciccarello/DefinitelyTyped,nycdotnet/DefinitelyTyped,benishouga/DefinitelyTyped,aciccarello/DefinitelyTyped,progre/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,nycdotnet/DefinitelyTyped,abbasmhd/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,isman-usoh/DefinitelyTyped,aciccarello/DefinitelyTyped,alexdresko/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,chrootsu/DefinitelyTyped,QuatroCode/DefinitelyTyped,minodisk/DefinitelyTyped,mcrawshaw/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,mcrawshaw/DefinitelyTyped,jimthedev/DefinitelyTyped,georgemarshall/DefinitelyTyped