Questions tagged as 'ecmascript-6'

2
answers

Promises in angular

I have a problem with asynchronism ... I am trying to create a service in angular that gives me the data of an excel in json. I'm doing this with a library and it works well. my problem is that calling it as a service I leave it within a prom...
asked by 20.10.2018 / 05:58
1
answer

Calculating the total of the products with Javascript

I am trying to add products to a shopping table, which works well, the problem comes when calculating, between the quantity of the product and the price, however, when changing the quantity, this is not the calculates, I had a certain inconvenie...
asked by 13.10.2018 / 08:50
0
answers

sinon stub as a module

Hi, I'm trying to do a test in a class written in ES6. The problem arises when I want to do a stub on a function of a module that I import. the code I have is the following: module.js function soapModule(){ this.callSoap = (id)...
asked by 14.05.2018 / 18:03
1
answer

Error no-restricted-syntax iterators / generator on Eslint Airbnb

I'm testing Eslint using the Airbn style guides, I use the airbnb-base package My doubt arises from this error in a loop for..of error: no-restricted-syntax - iterator/generator In the documentation says:    Do not use iter...
asked by 06.04.2018 / 22:32