-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eb694c
commit 3516382
Showing
2 changed files
with
36 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
context("Creating objects with DiagrammeR, mermaid, and grViz") | ||
|
||
test_that("htmlwidgets object can be created", { | ||
|
||
diagrammer_htmlwidget <- | ||
DiagrammeR(" | ||
graph LR | ||
A-->B | ||
A-->C | ||
C-->E | ||
B-->D | ||
C-->D | ||
D-->F | ||
E-->F") | ||
|
||
# Expect that the object inherits | ||
# from `DiagrammeR` and `htmlwidget` | ||
expect_is( | ||
diagrammer_htmlwidget, c("DiagrammeR", "htmlwidget")) | ||
|
||
mermaid_htmlwidget <- | ||
mermaid(" | ||
graph LR | ||
A-->B | ||
A-->C | ||
C-->E | ||
B-->D | ||
C-->D | ||
D-->F | ||
E-->F") | ||
|
||
# Expect that the object inherits | ||
# from `DiagrammeR` and `htmlwidget` | ||
expect_is( | ||
mermaid_htmlwidget, c("DiagrammeR", "htmlwidget")) | ||
}) |
This file was deleted.
Oops, something went wrong.