From 9767c124897ad2db562f4f2e7652618127586750 Mon Sep 17 00:00:00 2001
From: Steve Hopkinson <stevehopkinson@users.noreply.github.com>
Date: Sat, 4 Feb 2017 11:21:43 +0000
Subject: [PATCH] Move message to end of arguments and make optional

---
 assert-equals.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/assert-equals.js b/assert-equals.js
index ac48593..b14bb12 100644
--- a/assert-equals.js
+++ b/assert-equals.js
@@ -1,9 +1,9 @@
-function assertEquals (message, expected, actual) {
+function assertEquals (expected, actual, message) {
   try {
     deepEquals(expected, actual);
   }
   catch (failure) {
-    throw (`${message} ${failure.message}`);   
+    throw (`${message ? message + ' ' : ''}${failure.message}`);   
   }
 };