diff --git a/packages/zcli-themes/src/lib/getAssets.test.ts b/packages/zcli-themes/src/lib/getAssets.test.ts index d88fb521..fc15a127 100644 --- a/packages/zcli-themes/src/lib/getAssets.test.ts +++ b/packages/zcli-themes/src/lib/getAssets.test.ts @@ -44,7 +44,7 @@ describe('getAssets', () => { ]) }) - it('throws and error when an asset has illegal characters in its name', () => { + it('throws an error when an asset has illegal characters in its name', () => { const existsSyncStub = sinon.stub(fs, 'existsSync') const readdirSyncStub = sinon.stub(fs, 'readdirSync') diff --git a/packages/zcli-themes/src/lib/getManifest.test.ts b/packages/zcli-themes/src/lib/getManifest.test.ts index d93964d6..9819fa41 100644 --- a/packages/zcli-themes/src/lib/getManifest.test.ts +++ b/packages/zcli-themes/src/lib/getManifest.test.ts @@ -31,7 +31,7 @@ describe('getManifest', () => { expect(getManifest('theme/path')).to.deep.equal(manifest) }) - it('throws and error when it can\'t find a manifest.json file', () => { + it('throws an error when it can\'t find a manifest.json file', () => { const existsSyncStub = sinon.stub(fs, 'existsSync') existsSyncStub @@ -43,7 +43,7 @@ describe('getManifest', () => { }).to.throw('Couldn\'t find a manifest.json file at path: "theme/path/manifest.json"') }) - it('throws and error when the manifest.json file is malformed', () => { + it('throws an error when the manifest.json file is malformed', () => { const existsSyncStub = sinon.stub(fs, 'existsSync') const readFileSyncStub = sinon.stub(fs, 'readFileSync') diff --git a/packages/zcli-themes/src/lib/getRuntimeContext.test.ts b/packages/zcli-themes/src/lib/getRuntimeContext.test.ts index 6879ee8c..13614a40 100644 --- a/packages/zcli-themes/src/lib/getRuntimeContext.test.ts +++ b/packages/zcli-themes/src/lib/getRuntimeContext.test.ts @@ -77,7 +77,7 @@ describe('getRuntimeContext', () => { username: 'admin@zendesk.com' }) - it('throws and error when the config file is malformed', () => { + it('throws an error when the config file is malformed', () => { const existsSyncStub = sinon.stub(fs, 'existsSync') const readFileSyncStub = sinon.stub(fs, 'readFileSync') diff --git a/packages/zcli-themes/src/lib/getVariables.test.ts b/packages/zcli-themes/src/lib/getVariables.test.ts index 8ec01b3a..bf69d92a 100644 --- a/packages/zcli-themes/src/lib/getVariables.test.ts +++ b/packages/zcli-themes/src/lib/getVariables.test.ts @@ -57,6 +57,6 @@ describe('getVariables', () => { expect(() => { getVariables('theme/path', settings, context) - }).to.throw('The setting "favicon" of type "file" does not a matching file within the "settings" folder') + }).to.throw('The setting "favicon" of type "file" does not have a matching file within the "settings" folder') }) }) diff --git a/packages/zcli-themes/src/lib/getVariables.ts b/packages/zcli-themes/src/lib/getVariables.ts index 722971f7..dc5208f9 100644 --- a/packages/zcli-themes/src/lib/getVariables.ts +++ b/packages/zcli-themes/src/lib/getVariables.ts @@ -14,7 +14,7 @@ export default function getVariables (themePath: string, settings: Setting[], co const file = filenames.find(filename => path.parse(filename).name === variable.identifier) if (!file) { throw new CLIError( - `The setting "${variable.identifier}" of type "file" does not a matching file within the "settings" folder` + `The setting "${variable.identifier}" of type "file" does not have a matching file within the "settings" folder` ) } variable.value = file && `http://${context.host}:${context.port}/guide/settings/${file}` diff --git a/packages/zcli-themes/src/lib/preview.ts b/packages/zcli-themes/src/lib/preview.ts index 73f39b26..ce20f1f8 100644 --- a/packages/zcli-themes/src/lib/preview.ts +++ b/packages/zcli-themes/src/lib/preview.ts @@ -9,7 +9,7 @@ import { CLIError } from '@oclif/core/lib/errors' export const livereloadScript = (host: string, port: number) => ` ` diff --git a/packages/zcli-themes/src/lib/zass.test.ts b/packages/zcli-themes/src/lib/zass.test.ts index b0f6bca0..8c9fdb26 100644 --- a/packages/zcli-themes/src/lib/zass.test.ts +++ b/packages/zcli-themes/src/lib/zass.test.ts @@ -13,7 +13,7 @@ describe('zass', () => { }) describe('variables', () => { - it('replaces all the instance of the variable with its value', () => { + it('replaces all instances of the variable with its value', () => { const source = ` .header { color: $font_color; diff --git a/packages/zcli-themes/tests/functional/mocks/base_theme/manifest.json b/packages/zcli-themes/tests/functional/mocks/base_theme/manifest.json index 029dc317..947adf2b 100644 --- a/packages/zcli-themes/tests/functional/mocks/base_theme/manifest.json +++ b/packages/zcli-themes/tests/functional/mocks/base_theme/manifest.json @@ -31,4 +31,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/packages/zcli-themes/tests/functional/preview.test.ts b/packages/zcli-themes/tests/functional/preview.test.ts index da27545b..ffa09cff 100644 --- a/packages/zcli-themes/tests/functional/preview.test.ts +++ b/packages/zcli-themes/tests/functional/preview.test.ts @@ -23,7 +23,7 @@ describe('themes:preview', function () { }) test - .it('should serve assets on de defined host and port', async () => { + .it('should serve assets on the defined host and port', async () => { expect((await axios.get('http://0.0.0.0:9999/guide/style.css')).status).to.eq(200) expect((await axios.get('http://0.0.0.0:9999/guide/script.js')).status).to.eq(200) expect((await axios.get('http://0.0.0.0:9999/guide/settings/logo.png')).status).to.eq(200) @@ -40,7 +40,7 @@ describe('themes:preview', function () { }) test - .it('should watch for changes in the manifest.json', async () => { + .it('should watch for changes in the manifest.json file', async () => { // Read manifest.json const manifestPath = path.join(baseThemePath, 'manifest.json') const manifest: Manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'))