source: imaps-frontend/node_modules/btoa/test.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 409 bytes
Line 
1/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
2(function () {
3 "use strict";
4
5 var btoa = require('./index')
6 , encoded = "SGVsbG8sIBZM"
7 , unencoded = "Hello, 世界"
8 ;
9
10 if (encoded !== btoa(unencoded)) {
11 console.error('[FAIL]', encoded, btoa(unencoded));
12 return;
13 }
14
15 console.log('[PASS] all tests pass');
16}());
Note: See TracBrowser for help on using the repository browser.