Skip to content

Commit

Permalink
touch ups
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Dec 24, 2024
1 parent 4d12f4c commit af3771d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bin/create-docs-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function formatReleaseNotes(releaseDate, version, body, frontmatter) {
'subject: Node.js agent',
`releaseDate: '${releaseDate}'`,
`version: ${version.substring(1)}`, // remove the `v` from start of version
'downloadLink: \'https://www.npmjs.com/package/newrelic\'',
"downloadLink: 'https://www.npmjs.com/package/newrelic'",
`security: ${frontmatter.security}`,
`bugs: ${frontmatter.bugfixes}`,
`features: ${frontmatter.features}`,
Expand Down
2 changes: 1 addition & 1 deletion bin/run-bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function run() {

const resolveGlobs = () => {
if (!globs.length) {
console.error('There aren\'t any globs to resolve.')
console.error("There aren't any globs to resolve.")
return
}
const afterGlobbing = (resolved) => {
Expand Down
4 changes: 2 additions & 2 deletions bin/test/create-docs-pr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ test('Create Docs PR script', async (t) => {
const expected = [
'---',
'subject: Node.js agent',
'releaseDate: \'2020-04-03\'',
"releaseDate: '2020-04-03'",
'version: 2.0.0',
'downloadLink: \'https://www.npmjs.com/package/newrelic\'',
"downloadLink: 'https://www.npmjs.com/package/newrelic'",
'security: ["upgraded a dep"]',
'bugs: ["fixed a bug"]',
'features: ["added new api method"]',
Expand Down
6 changes: 3 additions & 3 deletions test/benchmark/lib/db/query-parsers/sql.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ function multipleEmbeddedMultiLineComments() {

function selectStatement() {
parseSql(
'with foobar (col1) as cte select * from foo as a join on cte using (col1) where a.bar = \'baz\''
"with foobar (col1) as cte select * from foo as a join on cte using (col1) where a.bar = 'baz'"
)
}

function updateStatement() {
parseSql('update foo set bar = \'baz\' where col1 = 1')
parseSql("update foo set bar = 'baz' where col1 = 1")
}

function deleteStatement() {
parseSql('delete from foo where bar = \'baz\'')
parseSql("delete from foo where bar = 'baz'")
}
2 changes: 1 addition & 1 deletion test/unit/collector/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const apiMethods = [
0,
'OtherTransaction/Custom/Simple/sqlTransaction',
'Custom/Simple/sqlTransaction',
'[1543864412869,{},{},[0,1,\'ROOT\',{\'async_context\':\'main\',\'exclusive_duration_millis\':0.886261},[[0,1,\'Java/Simple/sqlTransaction\',{\'async_context\':\'main\',\'exclusive_duration_millis\':0.886261},[],\'Simple\',\'sqlTransaction\']],\'Simple\',\'sqlTransaction\'],{\'userAttributes\':{\'test\':\'metric\'},\'intrinsics\':{\'traceId\':\'731f4eebda5f292c\',\'guid\':\'731f4eebda5f292c\',\'priority\':1.825609,\'sampled\':true,\'totalTime\':8.86261E-4},\'agentAttributes\':{\'request.uri\':\'Custom/Simple/sqlTransaction\',\'jvm.thread_name\':\'main\'}}]',
"[1543864412869,{},{},[0,1,'ROOT',{'async_context':'main','exclusive_duration_millis':0.886261},[[0,1,'Java/Simple/sqlTransaction',{'async_context':'main','exclusive_duration_millis':0.886261},[],'Simple','sqlTransaction']],'Simple','sqlTransaction'],{'userAttributes':{'test':'metric'},'intrinsics':{'traceId':'731f4eebda5f292c','guid':'731f4eebda5f292c','priority':1.825609,'sampled':true,'totalTime':8.86261E-4},'agentAttributes':{'request.uri':'Custom/Simple/sqlTransaction','jvm.thread_name':'main'}}]",
'731f4eebda5f292c',
null,
false
Expand Down
2 changes: 1 addition & 1 deletion test/unit/shimmer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ test('Shimmer with logger mock', async (t) => {
assert.deepEqual(loggerMock.debug.args[0], [
'Failed to get version for `%s`, reason: %s',
'bogus',
'no tracked items for module \'bogus\''
"no tracked items for module 'bogus'"
])
}
)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/spans/span-event-aggregator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ test('SpanAggregator', async (t) => {
)
})

await t.test('should use \'span_event_harvest_config.harvest_limit\' from server', (t) => {
await t.test("should use 'span_event_harvest_config.harvest_limit' from server", (t) => {
const { spanEventAggregator } = t.nr
const fakeConfig = {
span_event_harvest_config: {
Expand All @@ -276,7 +276,7 @@ test('SpanAggregator', async (t) => {
assert.equal(spanEventAggregator._items.limit, 2000, 'should set queue limit')
})

await t.test('should use \'span_event_harvest_config.harvest_limit\' from server', (t) => {
await t.test("should use 'span_event_harvest_config.harvest_limit' from server", (t) => {
const { spanEventAggregator } = t.nr
const fakeConfig = {
span_event_harvest_config: {
Expand Down

0 comments on commit af3771d

Please sign in to comment.