import { expect } from 'chai'; import netlifyAdapter from '../../dist/index.js'; import { loadFixture, testIntegration } from './test-utils.js'; describe('Split support', () => { /** @type {import('./test-utils').Fixture} */ let fixture; let _entryPoints; before(async () => { fixture = await loadFixture({ root: new URL('./fixtures/split-support/', import.meta.url).toString(), output: 'server', adapter: netlifyAdapter({ dist: new URL('./fixtures/split-support/dist/', import.meta.url), }), site: `http://example.com`, integrations: [ testIntegration({ setEntryPoints(ep) { _entryPoints = ep; }, }), ], build: { split: true, }, }); await fixture.build(); }); it('outputs a correct redirect file', async () => { const redir = await fixture.readFile('/_redirects'); const lines = redir.split(/[\r\n]+/); expect(lines.length).to.equal(2); expect(lines[0].includes('/blog')).to.be.true; expect(lines[0].includes('blog.astro')).to.be.true; expect(lines[0].includes('200')).to.be.true; expect(lines[1].includes('/')).to.be.true; expect(lines[1].includes('index.astro')).to.be.true; expect(lines[1].includes('200')).to.be.true; }); describe('Should create multiple functions', () => { it('and hit 200', async () => { if (_entryPoints) { for (const [, filePath] of _entryPoints) { const { handler } = await import(filePath.toString()); const resp = await handler({ httpMethod: 'POST', headers: {}, rawUrl: 'http://example.com/', body: '{}', }); expect(resp.statusCode).to.equal(200); } } else { expect(false).to.be.true; } }); }); }); sitory.
aboutsummaryrefslogtreecommitdiff
path: root/src/ui/c-input-text/c-input-text.demo.vue (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-25chore(deps): update dependency c8 to v8 (#498)Gravatar renovate[bot] 2-6/+10
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24chore(deps): update dependency @types/jsdom to v21 (#495)Gravatar renovate[bot] 2-10/+12
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24chore(deps): update node.js to v16.20.1 (#491)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24fix(deps): update dependency country-code-lookup to ^0.1.0 (#493)Gravatar renovate[bot] 2-5/+5
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24fix(deps): update dependency @vueuse/head to ^0.9.0 (#492)Gravatar renovate[bot] 2-11/+20
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24chore(deps): update dependency vitest to ^0.32.0 (#489)Gravatar renovate[bot] 2-36/+502
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24chore(deps): update actions/checkout action to v3 (#494)Gravatar renovate[bot] 2-2/+2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23chore(deps): update dependency unplugin-vue-components to ^0.25.0 (#484)Gravatar renovate[bot] 2-8/+12
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23chore(deps): update dependency unplugin-auto-import to ^0.16.0 (#483)Gravatar renovate[bot] 2-15/+23
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23fix(i18n): fallback for demo i18nGravatar Corentin Thomasset 1-1/+1
2023-06-23feat(new-tool): yaml to tomlGravatar Corentin Thomasset 5-3/+83
2023-06-23feat(new-tool): json to tomlGravatar Corentin Thomasset 5-0/+83
2023-06-23feat(new-tool): toml to yamlGravatar Corentin Thomasset 4-0/+77
2023-06-23feat(new-tool): toml to jsonGravatar Corentin Thomasset 8-1/+114
2023-06-23refactor(json-viewer): input monospace font (#485)Gravatar Marvin 1-2/+3
2023-06-23chore(deps): update dependency unocss to ^0.53.0 (#482)Gravatar renovate[bot] 2-122/+123
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23chore(deps): update dependency @unocss/eslint-config to ^0.53.0 (#478)Gravatar renovate[bot] 2-30/+94
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23refacor(transformers): use monospace font for JSON and SQL text areas (#476)Gravatar Marvin 4-3/+15
* feat(c-input): Add monospace prop * feat: use monospace input for json and sql inputs