Skip to content

Commit

Permalink
tests: add dummy files for use_{external,internal}_XXX_files() testing
Browse files Browse the repository at this point in the history
- add some dummy files to the inst/utils/ directory

- for later: add tests that download exactly from that directory
  • Loading branch information
ilyaZar committed Jul 5, 2023
1 parent 5acafc8 commit 19937aa
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions inst/utils/testfile_template_css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
background-color: lightblue;
}

h1 {
color: white;
text-align: center;
}

p {
font-family: verdana;
font-size: 20px;
}
10 changes: 10 additions & 0 deletions inst/utils/testfile_template_html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
2 changes: 2 additions & 0 deletions inst/utils/testfile_template_js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const myHeading = document.querySelector("h1");
myHeading.textContent = "Hello world!";
1 change: 1 addition & 0 deletions inst/utils/testfile_template_plainfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some text.

0 comments on commit 19937aa

Please sign in to comment.