summaryrefslogtreecommitdiff
path: root/deno2
diff options
context:
space:
mode:
Diffstat (limited to 'deno2')
-rw-r--r--deno2/deno_test.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/deno2/deno_test.cc b/deno2/deno_test.cc
index 4d3d20d94..0b570a4b5 100644
--- a/deno2/deno_test.cc
+++ b/deno2/deno_test.cc
@@ -4,9 +4,11 @@
#include "include/deno.h"
-TEST(SnapshotTest, InitializesCorrectly) {
- EXPECT_TRUE(true);
- // TODO(ry) add actual tests
+TEST(DenoTest, InitializesCorrectly) {
+ deno_init();
+ Deno* d = deno_new(NULL, NULL);
+ int r = deno_load(d, "a.js", "1 + 2");
+ EXPECT_EQ(r, 0);
}
int main(int argc, char** argv) {