From 13394c99af5276cac2f614a65e969a4556e45aab Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 27 Sep 2022 17:38:12 +0200 Subject: [PATCH] chore: remove unused code --- test/README.md | 7 ------- test/example.test.js | 24 ------------------------ 2 files changed, 31 deletions(-) delete mode 100644 test/README.md delete mode 100644 test/example.test.js diff --git a/test/README.md b/test/README.md deleted file mode 100644 index da298bf..0000000 --- a/test/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# `test` directory - -This folder contain tests for your component(s). This templates makes no assumption regarding your way of writting code. You can either write the code first and then the tests or the reverse (known as Test-Driven Development). Ultimately, what's important is that your code works and is tested to prove it! - -Included in this template is [astro-component-tester](https://github.com/Princesseuh/astro-component-tester), a tool made to help you test the output of your component(s), check out its GitHub page for more info on how to use it - -A commented example test (see `example.test.js`) is included in this folder to help you learn how to write a basic test for your project diff --git a/test/example.test.js b/test/example.test.js deleted file mode 100644 index a0b51e6..0000000 --- a/test/example.test.js +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from 'chai'; -import { getComponentOutput } from 'astro-component-tester'; - -describe('Example Tests', () => { - // Simple test to get us started with the syntax - it('should equal 2', () => { - expect(1 + 1).to.equal(2); - }); - - // This show us how to write a test for our component's output using astro-component-tester - describe('Component test', async () => { - let component; - - // First get the component's output, this returns an object containing the generated html (`.html`) - before(async () => { - component = await getComponentOutput('./src/Component.astro'); - }); - - // Unless you modified /src/Component.astro, this should pass, as the component is empty apart from the frontmatter and new lines - it('example component should be empty', () => { - expect(component.html).to.equal('\n'); - }); - }); -});