spec/create.spec.js
function checkPackageJson () {
        const pkg = requireFresh(path.join(project, 'package.json'));
        expect(pkg.name).toEqual(appId);
        expect(pkg.displayName).toEqual(appName);
        expect(pkg.version).toEqual(appVersion);
    }
function checkPackageJson () {
        const pkg = requireFresh(path.join(project, 'package.json'));
        expect(pkg.name).toEqual(appId);
        expect(pkg.displayName).toEqual(appName);
        expect(pkg.version).toEqual(appVersion);
    }
function checkPackageJson ( ) { const pkg = requireFresh ( path . join ( project , 'package.json' ) ) ; expect ( pkg . name ) . toEqual ( appId ) ; expect ( pkg . displayName ) . toEqual ( appName ) ; expect ( pkg . version ) . toEqual ( appVersion ) ; }
Check that we got package.json and it was updated correctly
Check that we got package . json and it was updated correctly