]> git.proxmox.com Git - mirror_novnc.git/blobdiff - tests/test.base64.js
Use fat arrow functions `const foo = () => { ... };` for callbacks
[mirror_novnc.git] / tests / test.base64.js
index 0ff4bfe28a288ceee8a06a375be8502b05b9f659..a972448920bfd03a9c0c6429de426163e2509525 100644 (file)
@@ -27,7 +27,7 @@ describe('Base64 Tools', function() {
         });
 
         it('should throw an error if we have extra characters at the end of the string', function() {
-            expect(function () { Base64.decode(B64_STR+'abcdef'); }).to.throw(Error);
+            expect(() => Base64.decode(B64_STR+'abcdef')).to.throw(Error);
         });
     });
 });