Skip to content

Commit 71151bb

Browse files
committed
Rename Parser.Parse
1 parent 172f843 commit 71151bb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default class Timesheet {
44
constructor(html) {
55
const p = new Parser();
66

7-
this.list = p.parse(html);
7+
this.list = p.Parse(html);
88
}
99

1010
// End returns the last end date of all bubbles

src/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class Parser {
1818
this.list = new List((a, b) => (a.Start() < b.Start() ? -1 : 1));
1919
}
2020

21-
parse(html) {
21+
Parse(html) {
2222
let dateStart, dateEnd, label, item;
2323

2424
// Clear list

src/parser_spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Parser', function () {
1616
</ul>
1717
`);
1818

19-
expect(p.parse(input).Size()).toEqual(0);
19+
expect(p.Parse(input).Size()).toEqual(0);
2020
});
2121

2222
it('should return an empty array for lists without timesheet class', () => {
@@ -26,7 +26,7 @@ describe('Parser', function () {
2626
</ul>
2727
`);
2828

29-
expect(p.parse(input).Size()).toEqual(0);
29+
expect(p.Parse(input).Size()).toEqual(0);
3030
});
3131

3232
it('should return an empty array for lists with timesheet class but without timesheet-item elements', () => {
@@ -36,7 +36,7 @@ describe('Parser', function () {
3636
</ul>
3737
`);
3838

39-
expect(p.parse(input).Size()).toEqual(0);
39+
expect(p.Parse(input).Size()).toEqual(0);
4040
});
4141

4242
it('should return an array for lists with timesheet class and timesheet-item elements', () => {
@@ -50,7 +50,7 @@ describe('Parser', function () {
5050
</ul>
5151
`);
5252

53-
expect(p.parse(input).Size()).toEqual(1);
53+
expect(p.Parse(input).Size()).toEqual(1);
5454
});
5555

5656
it('should return an array of bubbles for lists with timesheet class and timesheet-item elements', () => {
@@ -76,7 +76,7 @@ describe('Parser', function () {
7676
</ul>
7777
`);
7878

79-
var output = p.parse(input);
79+
var output = p.Parse(input);
8080
expect(output.Size()).toEqual(1);
8181

8282
var item = output.Next();

0 commit comments

Comments
 (0)