Transform 'let' in 'const' where needs be

This commit is contained in:
Étienne Boisseau-Sierra
2018-08-07 11:23:28 +01:00
parent deb698c09e
commit 00407bdee5
25 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ This setup should be the same for all of the exercises. The plain javascript fi
Let's look at the spec file first:
```javascript
let helloWorld = require('./helloWorld');
const helloWorld = require('./helloWorld');
describe('Hello World', function() {
it('says hello world', function() {
@@ -26,7 +26,7 @@ For now you do not need to worry about how to write tests, but you should try to
so let's look at the javascript file:
```javascript
let helloWorld = function() {
const helloWorld = function() {
return ''
}
@@ -40,7 +40,7 @@ Just to make sure, in case you're confused at this point, the test is telling yo
this is what the final function should look like:
```javascript
let helloWorld = function() {
const helloWorld = function() {
return 'Hello, World!'
}
+1 -1
View File
@@ -1,4 +1,4 @@
let helloWorld = function() {
const helloWorld = function() {
return ''
}
+2 -2
View File
@@ -1,7 +1,7 @@
let helloWorld = require('./helloWorld');
const helloWorld = require('./helloWorld');
describe('Hello World', function() {
it('says hello world', function() {
expect(helloWorld()).toEqual('Hello, World!');
});
});
});