Created
September 16, 2023 13:14
-
-
Save YonatanKra/ce6f418cfd682bf15edf3d34bec07784 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" class="vvd-root"> | |
<head> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="/src/styles.css" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Tauri App</title> | |
<script type="module" src="/src/main.ts" defer></script> | |
<style> | |
.logo.vite:hover { | |
filter: drop-shadow(0 0 2em #747bff); | |
} | |
.logo.typescript:hover { | |
filter: drop-shadow(0 0 2em #2d79c7); | |
} | |
</style> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('main', () => { | |
it ('should define yag-greeter', () => { | |
expect(customElements.get('yag-greeter')).toBeDefined(); | |
}); | |
it('should set yag-app inside the body', () => { | |
expect(document.body.innerHTML).toBe('<yag-app></yag-app>'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Greeter } from "./components/greeter"; | |
customElements.define("yag-greeter", Greeter); | |
document.body.innerHTML = "<yag-app></yag-app>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment