Skip to content

Commit d0f5e96

Browse files
committed
export showtable, basic tests
1 parent be1a96d commit d0f5e96

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/TableView.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ using Tables
44
using WebIO, JSExpr, JSON, Dates, UUIDs
55
using Observables: @map
66

7+
export showtable
8+
79
const ag_grid_imports = []
810

911
function __init__()

test/runtests.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
using TableView
2-
using Base.Test
2+
using Test, WebIO
33

4-
# write your own tests here
5-
@test 1 == 2
4+
@test isfile(joinpath(@__DIR__, "..", "deps", "ag-grid", "ag-grid.js"))
5+
6+
nttable = [
7+
(a = 2.0, b = 3),
8+
(a = 3.0, b = 12)
9+
]
10+
@test showtable(nttable) isa WebIO.Scope

0 commit comments

Comments
 (0)