mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-24 00:55:00 +03:00
commit
dcae2f3987
17864
package-lock.json
generated
17864
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -74,7 +74,7 @@
|
|||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"sinon": "9.0.1",
|
"sinon": "9.0.1",
|
||||||
"tar": "6.0.1",
|
"tar": "6.0.1",
|
||||||
"ts-jest": "25.2.1",
|
"ts-jest": "^25.5.1",
|
||||||
"ts-loader": "6.2.2",
|
"ts-loader": "6.2.2",
|
||||||
"typescript": "3.8.3",
|
"typescript": "3.8.3",
|
||||||
"webpack": "4.42.1",
|
"webpack": "4.42.1",
|
||||||
|
@ -15,7 +15,8 @@ describe('_generateCadesFn', () => {
|
|||||||
console.log('hello from named function');
|
console.log('hello from named function');
|
||||||
}),
|
}),
|
||||||
).toEqual(
|
).toEqual(
|
||||||
`(function anonymous() {
|
`(function anonymous(
|
||||||
|
) {
|
||||||
|
|
||||||
console.log('hello from named function');
|
console.log('hello from named function');
|
||||||
|
|
||||||
@ -25,7 +26,8 @@ describe('_generateCadesFn', () => {
|
|||||||
|
|
||||||
test('generates function body from arrow function callback', () => {
|
test('generates function body from arrow function callback', () => {
|
||||||
expect(_generateCadesFn(() => console.log('hello from arrow function'))).toEqual(
|
expect(_generateCadesFn(() => console.log('hello from arrow function'))).toEqual(
|
||||||
`(function anonymous() {
|
`(function anonymous(
|
||||||
|
) {
|
||||||
return console.log('hello from arrow function');
|
return console.log('hello from arrow function');
|
||||||
})();//# sourceURL=crypto-pro_dynamicFn.js`,
|
})();//# sourceURL=crypto-pro_dynamicFn.js`,
|
||||||
);
|
);
|
||||||
@ -41,7 +43,8 @@ describe('_generateCadesFn', () => {
|
|||||||
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
|
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
|
||||||
}),
|
}),
|
||||||
).toEqual(
|
).toEqual(
|
||||||
`(function anonymous() {
|
`(function anonymous(
|
||||||
|
) {
|
||||||
|
|
||||||
var cadesFoo = cadesplugin.CreateObject('CADESCOM.Foo');
|
var cadesFoo = cadesplugin.CreateObject('CADESCOM.Foo');
|
||||||
var cadesBar = cadesplugin.CreateObject('CAdESCOM.Bar');
|
var cadesBar = cadesplugin.CreateObject('CAdESCOM.Bar');
|
||||||
@ -69,7 +72,8 @@ describe('_generateCadesFn', () => {
|
|||||||
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
|
void (__cadesAsyncToken__ + cadesBarNoMatterWhat.whateverMethod(cadesFoo));
|
||||||
}),
|
}),
|
||||||
).toEqual(
|
).toEqual(
|
||||||
`cadesplugin.async_spawn(function* anonymous() {
|
`cadesplugin.async_spawn(function* anonymous(
|
||||||
|
) {
|
||||||
|
|
||||||
var cadesFoo = yield cadesplugin.CreateObjectAsync('CADESCOM.Foo');
|
var cadesFoo = yield cadesplugin.CreateObjectAsync('CADESCOM.Foo');
|
||||||
var cadesBar = yield cadesplugin.CreateObjectAsync('CAdESCOM.Bar');
|
var cadesBar = yield cadesplugin.CreateObjectAsync('CAdESCOM.Bar');
|
||||||
|
Loading…
Reference in New Issue
Block a user