From 9bd16f23875c03e87f08a24c60d18f1fac811044 Mon Sep 17 00:00:00 2001 From: Josh Radcliff Date: Tue, 1 Oct 2024 14:31:28 -0400 Subject: [PATCH] Upgrade to chai 5.0.0 --- google-analytics-admin/package.json | 2 +- google-analytics-data/package.json | 2 +- google-analytics-data/test/get_common_metadata.test.js | 2 +- google-analytics-data/test/get_metadata_by_propert_id.test.js | 2 +- google-analytics-data/test/quickstart.test.js | 2 +- google-analytics-data/test/quickstart_json_credentials.test.js | 2 +- google-analytics-data/test/run_batch_report.test.js | 2 +- google-analytics-data/test/run_funnel_report.test.js | 2 +- google-analytics-data/test/run_pivot_report.test.js | 2 +- google-analytics-data/test/run_realtime_report.test.js | 2 +- .../test/run_realtime_report_with_minute_ranges.test.js | 2 +- .../test/run_realtime_report_with_multiple_dimensions.test.js | 2 +- .../test/run_realtime_report_with_multiple_metrics.test.js | 2 +- google-analytics-data/test/run_report.test.js | 2 +- google-analytics-data/test/run_report_with_aggregations.test.js | 2 +- google-analytics-data/test/run_report_with_cohorts.test.js | 2 +- google-analytics-data/test/run_report_with_date_ranges.test.js | 2 +- .../test/run_report_with_dimension_and_metric_filters.test.js | 2 +- .../test/run_report_with_dimension_exclude_filter.test.js | 2 +- .../test/run_report_with_dimension_filter.test.js | 2 +- .../test/run_report_with_dimension_in_list_filter.test.js | 2 +- .../test/run_report_with_multiple_dimension_filters.test.js | 2 +- .../test/run_report_with_multiple_dimensions.test.js | 2 +- .../test/run_report_with_multiple_metrics.test.js | 2 +- .../test/run_report_with_named_date_ranges.test.js | 2 +- google-analytics-data/test/run_report_with_ordering.test.js | 2 +- google-analytics-data/test/run_report_with_pagination.test.js | 2 +- .../test/run_report_with_property_quota.test.js | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-admin/package.json b/google-analytics-admin/package.json index c0b52bf..1559637 100644 --- a/google-analytics-admin/package.json +++ b/google-analytics-admin/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "c8": "^10.0.0", - "chai": "^4.2.0", + "chai": "^5.0.0", "eslint": "^8.53.0", "eslint-config-google": "^0.14.0", "mocha": "^10.0.0" diff --git a/google-analytics-data/package.json b/google-analytics-data/package.json index 76ddc3e..6e84b83 100644 --- a/google-analytics-data/package.json +++ b/google-analytics-data/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "c8": "^10.0.0", - "chai": "^4.2.0", + "chai": "^5.0.0", "eslint": "^8.53.0", "eslint-config-google": "^0.14.0", "mocha": "^10.0.0" diff --git a/google-analytics-data/test/get_common_metadata.test.js b/google-analytics-data/test/get_common_metadata.test.js index f41b408..4522495 100644 --- a/google-analytics-data/test/get_common_metadata.test.js +++ b/google-analytics-data/test/get_common_metadata.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/get_metadata_by_propert_id.test.js b/google-analytics-data/test/get_metadata_by_propert_id.test.js index cd73faa..e7c0a26 100644 --- a/google-analytics-data/test/get_metadata_by_propert_id.test.js +++ b/google-analytics-data/test/get_metadata_by_propert_id.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/quickstart.test.js b/google-analytics-data/test/quickstart.test.js index b19d982..3729cab 100644 --- a/google-analytics-data/test/quickstart.test.js +++ b/google-analytics-data/test/quickstart.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/quickstart_json_credentials.test.js b/google-analytics-data/test/quickstart_json_credentials.test.js index 99b750b..1df8a40 100644 --- a/google-analytics-data/test/quickstart_json_credentials.test.js +++ b/google-analytics-data/test/quickstart_json_credentials.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_batch_report.test.js b/google-analytics-data/test/run_batch_report.test.js index 318dc87..39ef0e3 100644 --- a/google-analytics-data/test/run_batch_report.test.js +++ b/google-analytics-data/test/run_batch_report.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_funnel_report.test.js b/google-analytics-data/test/run_funnel_report.test.js index df7e170..e740997 100644 --- a/google-analytics-data/test/run_funnel_report.test.js +++ b/google-analytics-data/test/run_funnel_report.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_pivot_report.test.js b/google-analytics-data/test/run_pivot_report.test.js index 613fbfc..4530220 100644 --- a/google-analytics-data/test/run_pivot_report.test.js +++ b/google-analytics-data/test/run_pivot_report.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_realtime_report.test.js b/google-analytics-data/test/run_realtime_report.test.js index 3bd0513..88d452c 100644 --- a/google-analytics-data/test/run_realtime_report.test.js +++ b/google-analytics-data/test/run_realtime_report.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_realtime_report_with_minute_ranges.test.js b/google-analytics-data/test/run_realtime_report_with_minute_ranges.test.js index a6a32b3..f5c2c11 100644 --- a/google-analytics-data/test/run_realtime_report_with_minute_ranges.test.js +++ b/google-analytics-data/test/run_realtime_report_with_minute_ranges.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_realtime_report_with_multiple_dimensions.test.js b/google-analytics-data/test/run_realtime_report_with_multiple_dimensions.test.js index 85aa6ba..7499819 100644 --- a/google-analytics-data/test/run_realtime_report_with_multiple_dimensions.test.js +++ b/google-analytics-data/test/run_realtime_report_with_multiple_dimensions.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_realtime_report_with_multiple_metrics.test.js b/google-analytics-data/test/run_realtime_report_with_multiple_metrics.test.js index ecb60c4..45b8d73 100644 --- a/google-analytics-data/test/run_realtime_report_with_multiple_metrics.test.js +++ b/google-analytics-data/test/run_realtime_report_with_multiple_metrics.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report.test.js b/google-analytics-data/test/run_report.test.js index 5c98fc0..491aa64 100644 --- a/google-analytics-data/test/run_report.test.js +++ b/google-analytics-data/test/run_report.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_aggregations.test.js b/google-analytics-data/test/run_report_with_aggregations.test.js index efceb40..650d1d6 100644 --- a/google-analytics-data/test/run_report_with_aggregations.test.js +++ b/google-analytics-data/test/run_report_with_aggregations.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_cohorts.test.js b/google-analytics-data/test/run_report_with_cohorts.test.js index 8fe5176..9645d9f 100644 --- a/google-analytics-data/test/run_report_with_cohorts.test.js +++ b/google-analytics-data/test/run_report_with_cohorts.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_date_ranges.test.js b/google-analytics-data/test/run_report_with_date_ranges.test.js index 3915a23..92f04ab 100644 --- a/google-analytics-data/test/run_report_with_date_ranges.test.js +++ b/google-analytics-data/test/run_report_with_date_ranges.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_dimension_and_metric_filters.test.js b/google-analytics-data/test/run_report_with_dimension_and_metric_filters.test.js index 0c27422..c92c09f 100644 --- a/google-analytics-data/test/run_report_with_dimension_and_metric_filters.test.js +++ b/google-analytics-data/test/run_report_with_dimension_and_metric_filters.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_dimension_exclude_filter.test.js b/google-analytics-data/test/run_report_with_dimension_exclude_filter.test.js index 674948f..bde1f44 100644 --- a/google-analytics-data/test/run_report_with_dimension_exclude_filter.test.js +++ b/google-analytics-data/test/run_report_with_dimension_exclude_filter.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_dimension_filter.test.js b/google-analytics-data/test/run_report_with_dimension_filter.test.js index 9a23290..ea4d411 100644 --- a/google-analytics-data/test/run_report_with_dimension_filter.test.js +++ b/google-analytics-data/test/run_report_with_dimension_filter.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_dimension_in_list_filter.test.js b/google-analytics-data/test/run_report_with_dimension_in_list_filter.test.js index da9dacb..df340f7 100644 --- a/google-analytics-data/test/run_report_with_dimension_in_list_filter.test.js +++ b/google-analytics-data/test/run_report_with_dimension_in_list_filter.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_multiple_dimension_filters.test.js b/google-analytics-data/test/run_report_with_multiple_dimension_filters.test.js index c7a335c..bcb79c4 100644 --- a/google-analytics-data/test/run_report_with_multiple_dimension_filters.test.js +++ b/google-analytics-data/test/run_report_with_multiple_dimension_filters.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_multiple_dimensions.test.js b/google-analytics-data/test/run_report_with_multiple_dimensions.test.js index 008358f..ef5b497 100644 --- a/google-analytics-data/test/run_report_with_multiple_dimensions.test.js +++ b/google-analytics-data/test/run_report_with_multiple_dimensions.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_multiple_metrics.test.js b/google-analytics-data/test/run_report_with_multiple_metrics.test.js index 5bbf0ae..b7fa6c6 100644 --- a/google-analytics-data/test/run_report_with_multiple_metrics.test.js +++ b/google-analytics-data/test/run_report_with_multiple_metrics.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_named_date_ranges.test.js b/google-analytics-data/test/run_report_with_named_date_ranges.test.js index 3420b14..b8a79cd 100644 --- a/google-analytics-data/test/run_report_with_named_date_ranges.test.js +++ b/google-analytics-data/test/run_report_with_named_date_ranges.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_ordering.test.js b/google-analytics-data/test/run_report_with_ordering.test.js index 4ef56a8..d79b39e 100644 --- a/google-analytics-data/test/run_report_with_ordering.test.js +++ b/google-analytics-data/test/run_report_with_ordering.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_pagination.test.js b/google-analytics-data/test/run_report_with_pagination.test.js index be66e98..5a0ce01 100644 --- a/google-analytics-data/test/run_report_with_pagination.test.js +++ b/google-analytics-data/test/run_report_with_pagination.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/google-analytics-data/test/run_report_with_property_quota.test.js b/google-analytics-data/test/run_report_with_property_quota.test.js index 836bffd..d0b305f 100644 --- a/google-analytics-data/test/run_report_with_property_quota.test.js +++ b/google-analytics-data/test/run_report_with_property_quota.test.js @@ -18,7 +18,7 @@ 'use strict'; const cp = require('child_process'); -const {assert} = require('chai'); +const assert = require('chai').assert; const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});