Skip to content

Commit

Permalink
Rename test file
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Jan 6, 2018
1 parent 6eb694c commit 3516382
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
36 changes: 36 additions & 0 deletions tests/testthat/test-htmlwidgets.R
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"))
})
35 changes: 0 additions & 35 deletions tests/testthat/test_htmlwidgets.R

This file was deleted.

0 comments on commit 3516382

Please sign in to comment.