I want to write a test for this construct with Jasmine. How could I do this?
define({
"root": {
"ADMIN": "Administrator",
"HQ_ADMIN": "Headquarter Admin",
"HQ_USER": "Headquarter User",
"WORKSHOP_USER": "Workshop User",
"DRIVER": "Driver"
}
});
Is it possible at all? I cannot write
expect("ADMIN").toBeDefined();
or
expect("ADMIN").toEqual("Administrator");
Aucun commentaire:
Enregistrer un commentaire