Skip to content

Commit b418384

Browse files
update sprint 3 practice tdd
1 parent b17fb0c commit b418384

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sprint-3/2-practice-tdd/repeat-str.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@ const repeatStr = require("./repeat-str");
1212
test("should repeat the string count times", () => {
1313
const str = "hello";
1414
const count = 3;
15-
expect(repeatStr(str,count)).toEqual("hellohellohello");
15+
expect(repeatStr(str, count)).toEqual("hellohellohello");
1616
});
17-
test(" should return original 'str' without repetition", ()=>{
17+
test(" should return original 'str' without repetition", () => {
1818
const str = "hello";
1919
const count = 1;
2020
expect(repeatStr(str, count)).toEqual("hello");
2121
});
22-
test("should return empty string", ()=>{
22+
test("should return empty string", () => {
2323
const str = "hello";
2424
const count = 0;
2525
expect(repeatStr(str, count)).toEqual("");
26-
2726
});
2827
test("should throw an error when count is negative", () => {
2928
const str = "hello";

0 commit comments

Comments
 (0)