From 7e40b4c7809f9e35a97ced6045757738e0514052 Mon Sep 17 00:00:00 2001 From: Sebastian Sauer Date: Wed, 18 Sep 2024 17:20:48 +0200 Subject: [PATCH] Rename method to multilineProperty --- spec/e2e.spec.ts | 2 +- spec/test_case.spec.ts | 2 +- spec/test_suite.spec.ts | 2 +- src/test_node.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/e2e.spec.ts b/spec/e2e.spec.ts index 9a044c5..ea89567 100644 --- a/spec/e2e.spec.ts +++ b/spec/e2e.spec.ts @@ -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'); diff --git a/spec/test_case.spec.ts b/spec/test_case.spec.ts index 6375858..797801e 100644 --- a/spec/test_case.spec.ts +++ b/spec/test_case.spec.ts @@ -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); diff --git a/spec/test_suite.spec.ts b/spec/test_suite.spec.ts index f644391..0299315 100644 --- a/spec/test_suite.spec.ts +++ b/spec/test_suite.spec.ts @@ -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); diff --git a/src/test_node.ts b/src/test_node.ts index 9e268c4..33b4cf5 100644 --- a/src/test_node.ts +++ b/src/test_node.ts @@ -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; }