Skip to content

Commit

Permalink
fix: fixed typos (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok authored and ofrobots committed Nov 26, 2018
1 parent 0ebcad2 commit e29fc14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {readFilep as read, readJsonp as readJson, writeFileAtomicp as write} fro

const pkg = require('../../package.json');

const DEFUALT_PACKAGE_JSON: PackageJson = {
const DEFAULT_PACKAGE_JSON: PackageJson = {
name: '',
version: '0.0.0',
description: '',
Expand Down Expand Up @@ -232,7 +232,7 @@ export async function init(options: Options): Promise<boolean> {
return false;
}

packageJson = DEFUALT_PACKAGE_JSON;
packageJson = DEFAULT_PACKAGE_JSON;
generatedPackageJson = true;
}

Expand Down
4 changes: 2 additions & 2 deletions test/test-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ test.serial('init should read local package.json', t => {
return withFixtures(
{'package.json': JSON.stringify(originalContents)}, async () => {
// TODO: this test causes `npm install` to run in the fixture directory.
// This may make it sensistive to the network, npm resiliency. Find a
// This may make it sensitive to the network, npm resiliency. Find a
// way to mock npm.
const result = await init.init(OPTIONS_YES);
t.truthy(result);
Expand All @@ -136,7 +136,7 @@ test.serial('init should read local package.json', t => {
test.serial('init should handle missing package.json', t => {
return withFixtures({}, async () => {
// TODO: this test causes `npm install` to run in the fixture directory.
// This may make it sensistive to the network, npm resiliency. Find a way to
// This may make it sensitive to the network, npm resiliency. Find a way to
// mock npm.
const result = await init.init(OPTIONS_YES);
t.truthy(result);
Expand Down
4 changes: 2 additions & 2 deletions test/test-lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ test.serial('lint should lint files listed in tsconfig.files', t => {
});

test.serial(
'lint should lint *.ts files when no files or inlcude has been specified',
'lint should lint *.ts files when no files or include has been specified',
async t => {
return withFixtures(
{
Expand Down Expand Up @@ -206,7 +206,7 @@ test.serial('lint should throw for unrecognized files', t => {
test.serial('lint should prefer user config file over default', async t => {
const CUSTOM_LINT_CODE = 'debugger;';

// By defualt the above should fail lint.
// By default the above should fail lint.
await withFixtures(
{
'tsconfig.json': JSON.stringify({files: ['a.ts']}),
Expand Down

0 comments on commit e29fc14

Please sign in to comment.