fix: tests

This commit is contained in:
Sidharth Vinod
2022-09-23 10:40:56 +05:30
parent 0d0de49231
commit 9e35bf6e6f
4 changed files with 4 additions and 4 deletions

View File

@@ -12,10 +12,10 @@ async function createServer() {
appType: 'custom', // don't include Vite's default HTML handling middlewares appType: 'custom', // don't include Vite's default HTML handling middlewares
}); });
app.use(vite.middlewares);
app.use(express.static('dist')); app.use(express.static('dist'));
app.use(express.static('demos')); app.use(express.static('demos'));
app.use(express.static('cypress/platform')); app.use(express.static('cypress/platform'));
app.use(vite.middlewares);
app.listen(9000, () => { app.listen(9000, () => {
console.log(`Listening on http://localhost:9000`); console.log(`Listening on http://localhost:9000`);

View File

@@ -2,7 +2,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<!-- <meta charset="iso-8859-15"/> --> <!-- <meta charset="iso-8859-15"/> -->
<script src="/e2e.esm.mjs" type="module"></script> <script src="./viewer.js" type="module" />
<!-- <link href="https://fonts.googleapis.com/css?family=Mansalva&display=swap" rel="stylesheet" /> --> <!-- <link href="https://fonts.googleapis.com/css?family=Mansalva&display=swap" rel="stylesheet" /> -->
<link <link
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap" href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"

View File

@@ -1,4 +1,4 @@
import { Base64 } from 'js-base64'; import { Base64 } from '../../node_modules/js-base64';
import mermaid2 from '../../src/mermaid'; import mermaid2 from '../../src/mermaid';
/** /**

View File

@@ -1,6 +1,6 @@
<html> <html>
<head> <head>
<script src="/e2e.esm.mjs" type="module"></script> <script src="./viewer.js" type="module"></script>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
<style> <style>
.malware { .malware {