summaryrefslogtreecommitdiff
path: root/packages/create-astro
diff options
context:
space:
mode:
authorGravatar ktym4a <shoma@ktym4a.me> 2024-02-16 18:41:16 +0700
committerGravatar GitHub <noreply@github.com> 2024-02-16 11:41:16 +0000
commit5ff288f61b51f9c5f0d8cc9ebd371a8d881c68fd (patch)
tree88ea7f2502e989a430f4a0fee55ebd163b45a7c2 /packages/create-astro
parent7bdcfb750ae5e8a9e2a0ee68c7ac03b82215d08f (diff)
downloadastro-5ff288f61b51f9c5f0d8cc9ebd371a8d881c68fd.tar.gz
astro-5ff288f61b51f9c5f0d8cc9ebd371a8d881c68fd.tar.zst
astro-5ff288f61b51f9c5f0d8cc9ebd371a8d881c68fd.zip
chore: Change `strictEqual` to `equal` (#10140)
Diffstat (limited to 'packages/create-astro')
-rw-r--r--packages/create-astro/test/context.test.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/packages/create-astro/test/context.test.js b/packages/create-astro/test/context.test.js
index 654733e6c..ab8fbadd8 100644
--- a/packages/create-astro/test/context.test.js
+++ b/packages/create-astro/test/context.test.js
@@ -7,67 +7,67 @@ describe('context', () => {
const ctx = await getContext([]);
assert.ok(!ctx.projectName);
assert.ok(!ctx.template);
- assert.deepStrictEqual(ctx.skipHouston, os.platform() === 'win32');
+ assert.deepEqual(ctx.skipHouston, os.platform() === 'win32');
assert.ok(!ctx.dryRun);
});
it('project name', async () => {
const ctx = await getContext(['foobar']);
- assert.deepStrictEqual(ctx.projectName, 'foobar');
+ assert.deepEqual(ctx.projectName, 'foobar');
});
it('template', async () => {
const ctx = await getContext(['--template', 'minimal']);
- assert.deepStrictEqual(ctx.template, 'minimal');
+ assert.deepEqual(ctx.template, 'minimal');
});
it('skip houston (explicit)', async () => {
const ctx = await getContext(['--skip-houston']);
- assert.deepStrictEqual(ctx.skipHouston, true);
+ assert.deepEqual(ctx.skipHouston, true);
});
it('skip houston (yes)', async () => {
const ctx = await getContext(['-y']);
- assert.deepStrictEqual(ctx.skipHouston, true);
+ assert.deepEqual(ctx.skipHouston, true);
});
it('skip houston (no)', async () => {
const ctx = await getContext(['-n']);
- assert.deepStrictEqual(ctx.skipHouston, true);
+ assert.deepEqual(ctx.skipHouston, true);
});
it('skip houston (install)', async () => {
const ctx = await getContext(['--install']);
- assert.deepStrictEqual(ctx.skipHouston, true);
+ assert.deepEqual(ctx.skipHouston, true);
});
it('dry run', async () => {
const ctx = await getContext(['--dry-run']);
- assert.deepStrictEqual(ctx.dryRun, true);
+ assert.deepEqual(ctx.dryRun, true);
});
it('install', async () => {
const ctx = await getContext(['--install']);
- assert.deepStrictEqual(ctx.install, true);
+ assert.deepEqual(ctx.install, true);
});
it('no install', async () => {
const ctx = await getContext(['--no-install']);
- assert.deepStrictEqual(ctx.install, false);
+ assert.deepEqual(ctx.install, false);
});
it('git', async () => {
const ctx = await getContext(['--git']);
- assert.deepStrictEqual(ctx.git, true);
+ assert.deepEqual(ctx.git, true);
});
it('no git', async () => {
const ctx = await getContext(['--no-git']);
- assert.deepStrictEqual(ctx.git, false);
+ assert.deepEqual(ctx.git, false);
});
it('typescript', async () => {
const ctx = await getContext(['--typescript', 'strict']);
- assert.deepStrictEqual(ctx.typescript, 'strict');
+ assert.deepEqual(ctx.typescript, 'strict');
});
});