{"size": 994, "ext": "js", "max_stars_repo_path": "packages/plugin-strict-mode/lib/add/index.spec.js", "max_stars_repo_name": "em-/putout", "max_stars_repo_stars_event_min_datetime": "2019-01-21T21:21:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T13:06:47.000Z", "max_issues_repo_path": "packages/plugin-strict-mode/lib/add/index.spec.js", "max_issues_repo_name": "em-/putout", "max_issues_repo_issues_event_min_datetime": "2019-04-24T12:01:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T18:38:15.000Z", "max_forks_repo_path": "packages/plugin-strict-mode/lib/add/index.spec.js", "max_forks_repo_name": "em-/putout", "max_forks_repo_forks_event_min_datetime": "2019-02-19T14:25:40.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-12T22:20:53.000Z"}
{"max_stars_count": 260, "max_issues_count": 98, "max_forks_count": 31, "avg_line_length": 21.1489361702, "max_line_length": 85, "alphanum_fraction": 0.583501006}
'use strict';

const {createTest} = require('@putout/test');
const add = require('.');

process.on('unhandledRejection', () => {});

const test = createTest(__dirname, {
    'strict-mode/add': add,
});

test('plugin-strict-mode: add: report', (t) => {
    t.report('commonjs', '"use strict" directive should be on top of commonjs file');
    t.end();
});

test('plugin-strict-mode: add: commonjs', (t) => {
    t.transform('commonjs');
    t.end();
});

test('plugin-strict-mode: add: strict', (t) => {
    t.transform('strict');
    t.end();
});

test('plugin-strict-mode: add: import', (t) => {
    t.transform('import');
    t.end();
});

test('plugin-strict-mode: add: no transform: flow', (t) => {
    t.noTransform('flow');
    t.end();
});

test('plugin-strict-mode: add: no transform: export-all', (t) => {
    t.noTransform('export-all');
    t.end();
});

test('plugin-strict-mode: add: no transform: top-level-await', (t) => {
    t.noTransform('top-level-await');
    t.end();
});

