diff options
author | 2023-11-28 15:39:38 +0100 | |
---|---|---|
committer | 2023-11-28 09:39:38 -0500 | |
commit | 000e8f4654cae9982e21e0a858366c4844139db6 (patch) | |
tree | 36001de27a149aecd7b5e67276026b6ac68dab12 /packages/upgrade/test/context.test.js | |
parent | 415fec54f8340a1ffcd6b926c1f5b1a0e0645e5a (diff) | |
download | astro-000e8f4654cae9982e21e0a858366c4844139db6.tar.gz astro-000e8f4654cae9982e21e0a858366c4844139db6.tar.zst astro-000e8f4654cae9982e21e0a858366c4844139db6.zip |
feat: implement overlay main screen redesign (#9118)
* feat: implement redesign
* fix: make it build
* feat: visual tweaks
* feat(overlay): update styling, integration endpoint
* feat: add fallback icons
* Clean up tests (#9183)
* Add `@astrojs/upgrade` package for automatic package upgrades (#8525)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* [ci] format
* fix: links with same path but different search params not prefetched (#9189)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix: discord icon
* chore: changeset
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Spencer Whitehead <35475068+SpencerWhitehead7@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Diffstat (limited to 'packages/upgrade/test/context.test.js')
-rw-r--r-- | packages/upgrade/test/context.test.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/upgrade/test/context.test.js b/packages/upgrade/test/context.test.js new file mode 100644 index 000000000..5b6b8c6b2 --- /dev/null +++ b/packages/upgrade/test/context.test.js @@ -0,0 +1,19 @@ +import { expect } from 'chai'; +import { getContext } from '../dist/index.js'; + +describe('context', () => { + it('no arguments', async () => { + const ctx = await getContext([]); + expect(ctx.version).to.eq('latest'); + expect(ctx.dryRun).to.be.undefined; + }); + it('tag', async () => { + const ctx = await getContext(['beta']); + expect(ctx.version).to.eq('beta'); + expect(ctx.dryRun).to.be.undefined; + }); + it('dry run', async () => { + const ctx = await getContext(['--dry-run']); + expect(ctx.dryRun).to.eq(true); + }); +}); |