Commits

Jon Nylander committed 29926b3

Exploring possibility of using bash and node.js to do basic testing
of the script.

Comments (0)

Files changed (2)

+var jstz = require("../jstz");
+
+function determine_current_timezone() {
+  var tz = jstz.jstz.determine();
+  console.log(tz.name());
+}
+
+determine_current_timezone();
+#!/bin/bash
+
+cp "/usr/share/zoneinfo/America/Los_Angeles" "/etc/localtime"
+tz=$(node run.js)
+echo "$tz"
+if [[ "$tz" == "America/Los_Angeles" ]]
+then
+  echo "YES"
+else
+  echo "NO"
+fi