Skip to content
Snippets Groups Projects
Commit 828c6fb7 authored by Daniel Kurowski's avatar Daniel Kurowski
Browse files

Added integration test

parent fdfc46b8
No related branches found
No related tags found
1 merge request!7Improve structure
Pipeline #26909 passed
.idea/
.rpt2_cache/
.babelrc
demo.html
rollup.config.js
tsconfig.json
yarn.lock
......@@ -44,4 +44,4 @@ yarn install
yarn dev
```
If you need to check visually how the smooth scrolling behaviour acts like, you can take advantage of a testing file `demo.html` which has some lorem ipsum data and few of links to navigate through the content and test smooth scrolling.
Every piece of this library comes with its unit test sitting alongside the script. Whole library is covered by integration test sitting in `src` folder.
......@@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Visual test of smoothscroll</title>
<title>Integration test</title>
<script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5/velocity.min.js"></script>
<script src="dist/index.js" type="text/javascript"></script>
<script src="../dist/index.js" type="text/javascript"></script>
<script>
SmoothScroll.enable({
scrollOnLoad: true,
......@@ -34,6 +34,8 @@
</style>
</head>
<body>
<!-- @todo: improve this file -->
<div id="nahoru"></div>
<a href="#item1">Item1</a>
<a href="#item2">Item2</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment