Skip to content

Commit de297bb

Browse files
committed
Update tests, remove sinon
1 parent 2de9999 commit de297bb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

index.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
<div id="mocha"></div>
1515
<script src="node_modules/mocha/mocha.js"></script>
1616
<script src="node_modules/expect/umd/expect.min.js"></script>
17-
<script src="node_modules/sinon/pkg/sinon.js"></script>
1817
<script>mocha.setup('bdd');</script>
1918
<script src="index.js"></script>
2019
<script src="test/index-test.js"></script>
21-
2220
</body>
23-
</html>
21+
</html>

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"homepage": "https://github.com/learn-co-curriculum/javascript-strings-lab#readme",
2424
"devDependencies": {
25+
"babel-core": "^6.11.4",
2526
"expect": "^1.20.2",
2627
"jsdom": "^8.5.0",
2728
"mocha": "^2.5.3",

test/index-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*global concatenatedString, describe, interpolatedString, it, myString */
22

33
it('defines `greeting`', function() {
4-
assert.equal(greeting, "Hello, everybody!")
4+
expect(greeting).toEqual("Hello, everybody!")
55
})
66

77
it('concatenates strings to greet a special guest in `greetSpecialGuest`', function() {
8-
assert.equal(greetSpecialGuest, "Hello, " + specialGuest + "!")
8+
expect(greetSpecialGuest).toEqual(`Hello, ${specialGuest}!`)
99
})
1010

1111
it('interpolates a string in `conversation`', function() {
12-
assert.equal(conversation, `Let's talk about ${topic}.`)
12+
expect(conversation).toEqual(`Let's talk about ${topic}.`)
1313
})

0 commit comments

Comments
 (0)