Skip to content

Commit

Permalink
Rename method to multilineProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-sauer committed Sep 18, 2024
1 parent 9222fc4 commit 7e40b4c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('JUnit Report builder', () => {
.name('Third test')
.file('./path-to/the-test-file.coffee')
.property('property name', 'property value')
.textContentProperty('property name 2', 'property value 2');
.multilineProperty('property name 2', 'property value 2');

const suite2 = builder.testSuite().name('second.Suite');
suite2.testCase().failure('Failure message');
Expand Down
2 changes: 1 addition & 1 deletion spec/test_case.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('Test Case builder', () => {
});

it('should add the provided property with textContent as elements with textContent', () => {
testCase.textContentProperty('property name', 'property value');
testCase.multilineProperty('property name', 'property value');

testCase.build(parentElement);

Expand Down
2 changes: 1 addition & 1 deletion spec/test_suite.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('Test Suite builder', () => {
});

it('should add the provided property with textContent as element with textContent', () => {
testSuite.textContentProperty('property name', 'property value');
testSuite.multilineProperty('property name', 'property value');

testSuite.build(parentElement);

Expand Down
2 changes: 1 addition & 1 deletion src/test_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export abstract class TestNode {
* @param value
* @returns this
*/
textContentProperty(name: string, value: string): this {
multilineProperty(name: string, value: string): this {
this._properties.push({ name: name, value: value, isPropertyWithTextContent: true });
return this;
}
Expand Down

0 comments on commit 7e40b4c

Please sign in to comment.