"Fossies" - the Fresh Open Source Software Archive

Member "angular-cli-15.2.4/tests/legacy-cli/e2e/tests/commands/analytics/analytics-enable-disable.ts" (16 Mar 2023, 393 Bytes) of package /linux/www/angular-cli-15.2.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import assert from 'node:assert';
    2 import { readFile } from '../../../utils/fs';
    3 import { ng } from '../../../utils/process';
    4 
    5 export default async function () {
    6   await ng('analytics', 'enable');
    7   assert.ok(JSON.parse(await readFile('angular.json')).cli.analytics);
    8 
    9   await ng('analytics', 'disable');
   10   assert.strictEqual(JSON.parse(await readFile('angular.json')).cli.analytics, false);
   11 }