aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/constant_test.js~
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/test/constant_test.js~')
-rw-r--r--src/node/test/constant_test.js~25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/node/test/constant_test.js~ b/src/node/test/constant_test.js~
new file mode 100644
index 0000000000..8ad9f81bbe
--- /dev/null
+++ b/src/node/test/constant_test.js~
@@ -0,0 +1,25 @@
+var assert = require("assert");
+var grpc = require("../build/Release");
+
+var status_names = [
+ "OK",
+ "CANCELLED",
+ "UNKNOWN",
+ "INVALID_ARGUMENT",
+ "DEADLINE_EXCEEDED",
+ "NOT_FOUND",
+ "ALREADY_EXISTS",
+ "PERMISSION_DENIED",
+ "UNAUTHENTICATED",
+ "RESOURCE_EXHAUSTED",
+ "FAILED_PRECONDITION",
+ "ABORTED",
+ "OUT_OF_RANGE",
+ "UNIMPLEMENTED",
+ "INTERNAL",
+ "UNAVAILABLE",
+ "DATA_LOSS"
+];
+
+describe("constants", function() {
+ it("should have all of the status constants", function() {