0
rsaencryption(data) {
var encrypt = new JSEncrypt();
}
i utilisé comme celui-ci dans le fichier security.js et i importé comme ci-dessous « déclare var JSEncrypt: tout; » quand je cours ng tester ce temps je reçois comme.JSEncrypt est pas défini venir quand je suis ruinais test ng dans angulaire 4
ReferenceError: JSEncrypt is not defined
at SecurityService.Array.concat.SecurityService.rsaencryption (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:17318:23)
at SecurityService.Array.concat.SecurityService.doHmac (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:17342:20)
at ApiPostman.Array.concat.ApiPostman.httpCall (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:20310:48)
at otherBankAccountBenDetails.Array.concat.otherBankAccountBenDetails.countryListChanged (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:62077:25)
at otherBankAccountBenDetails.Array.concat.otherBankAccountBenDetails.ngOnInit (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:62046:14)
at checkAndUpdateDirectiveInline (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:11196:19)
at checkAndUpdateNodeInline (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:12619:17)
at checkAndUpdateNode (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:12558:16)
at debugCheckAndUpdateNode (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:13261:59)
at debugCheckDirectivesFn (http://localhost:9876/base/src/test.ts?5c53671ab11331130c37ebbdd5efa4f0d9bf5201:13202:13)**