diff --git a/bin/create-docs-pr.js b/bin/create-docs-pr.js index e69797c7b6..a14bc32794 100644 --- a/bin/create-docs-pr.js +++ b/bin/create-docs-pr.js @@ -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}`, diff --git a/bin/run-bench.js b/bin/run-bench.js index ac33186c61..036c05439e 100755 --- a/bin/run-bench.js +++ b/bin/run-bench.js @@ -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) => { diff --git a/bin/test/create-docs-pr.test.js b/bin/test/create-docs-pr.test.js index 6425446815..2f0f003526 100644 --- a/bin/test/create-docs-pr.test.js +++ b/bin/test/create-docs-pr.test.js @@ -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"]', diff --git a/test/benchmark/lib/db/query-parsers/sql.bench.js b/test/benchmark/lib/db/query-parsers/sql.bench.js index f8700ebc3b..ca36c6afd3 100644 --- a/test/benchmark/lib/db/query-parsers/sql.bench.js +++ b/test/benchmark/lib/db/query-parsers/sql.bench.js @@ -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'") } diff --git a/test/unit/collector/api.test.js b/test/unit/collector/api.test.js index 06434a8b97..56a497ee0c 100644 --- a/test/unit/collector/api.test.js +++ b/test/unit/collector/api.test.js @@ -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 diff --git a/test/unit/shimmer.test.js b/test/unit/shimmer.test.js index b6218a1f57..6892039777 100644 --- a/test/unit/shimmer.test.js +++ b/test/unit/shimmer.test.js @@ -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'" ]) } ) diff --git a/test/unit/spans/span-event-aggregator.test.js b/test/unit/spans/span-event-aggregator.test.js index f3ac957482..1055e90de4 100644 --- a/test/unit/spans/span-event-aggregator.test.js +++ b/test/unit/spans/span-event-aggregator.test.js @@ -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: { @@ -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: {