Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updated intialization to properly return the api on start up to the security agent #1807

Merged
merged 1 commit into from Oct 12, 2023

Conversation

bizob2828
Copy link
Member

In #1800 we updated the early return and abstracted common initialization code. It properly assigns the API to module.exports but forgets to return the value used for security agent. This fixes that and updates the unit test to assert that the security agent is called with the agent.

@mrickard mrickard self-assigned this Oct 12, 2023
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #1807 (3612ac1) into main (0a54729) will increase coverage by 0.00%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1807   +/-   ##
=======================================
  Coverage   96.82%   96.83%           
=======================================
  Files         199      199           
  Lines       38958    38959    +1     
=======================================
+ Hits        37723    37724    +1     
  Misses       1235     1235           
Flag Coverage Δ
integration-tests-16.x 78.91% <100.00%> (+<0.01%) ⬆️
integration-tests-18.x 79.17% <100.00%> (+<0.01%) ⬆️
integration-tests-20.x 79.19% <100.00%> (-0.01%) ⬇️
unit-tests-16.x 91.43% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 91.41% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 91.41% <100.00%> (+0.01%) ⬆️
versioned-tests-16.x 73.05% <ø> (-0.01%) ⬇️
versioned-tests-18.x 73.05% <ø> (-0.01%) ⬇️
versioned-tests-20.x 72.97% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
index.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bizob2828 bizob2828 merged commit 99e5792 into newrelic:main Oct 12, 2023
29 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Oct 12, 2023
@github-actions github-actions bot mentioned this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants