Skip to content

Conversation

@danielpeintner
Copy link
Member

fixes issues with combination of base and abolsuteURL in href .

Added according (Modbus) test.

expect(tdObj.properties.device_name.forms[0]).to.have.property("op").to.eql("readproperty");
expect(tdObj.properties.device_name.forms[0])
.to.have.property("href")
.to.eql("modbus+tcp://192.168.178.146:502/1/40020?quantity=16");
Copy link
Member Author

@danielpeintner danielpeintner Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This is the actual issue that has been fixed and is tested now...

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5265b46) 75.50% compared to head (c3cf725) 75.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1100      +/-   ##
==========================================
+ Coverage   75.50%   75.52%   +0.02%     
==========================================
  Files          80       80              
  Lines       16150    16153       +3     
  Branches     1517     1520       +3     
==========================================
+ Hits        12194    12200       +6     
+ Misses       3917     3914       -3     
  Partials       39       39              
Files Coverage Δ
...s/td-tools/src/util/asset-interface-description.ts 81.88% <100.00%> (+0.37%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@relu91 relu91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for providing a unit test too!

@relu91 relu91 merged commit 49ad831 into eclipse-thingweb:master Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants