Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo123 committed May 15, 2016
1 parent 3877540 commit 1e6ffb1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
9 changes: 8 additions & 1 deletion Gruntfile.js
Expand Up @@ -12,7 +12,14 @@ module.exports = function (grunt) {
'http://github.com/gonzalo123/crypt - MIT License */\n',

jshint: {
files: ['Gruntfile.js', 'karma.conf.js', 'src/**.js', 'node/**.js', 'example/**.js', 'test/**.js'],
files: [
'Gruntfile.js',
'karma.conf.js',
'src/**.js',
'node/**.js',
'example/**.js',
'test/**.js'
],
options: {
globals: jshintrc
}
Expand Down
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -48,7 +48,7 @@ the HTTP client
<title>Title</title>
</head>
<body>
Open console
Open console to see the messages

<script src="http://localhost:3000/socket.io/socket.io.js"></script>
<script src="assets/cryptojslib/rollups/aes.js"></script>
Expand All @@ -74,4 +74,3 @@ Open console
</body>
</html>
```

2 changes: 1 addition & 1 deletion example/www/index.html
Expand Up @@ -5,7 +5,7 @@
<title>Title</title>
</head>
<body>
Open console
Open console to see the messages

<script src="http://localhost:3000/socket.io/socket.io.js"></script>
<script src="assets/cryptojslib/rollups/aes.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions test/cryptSpec.js
Expand Up @@ -4,15 +4,15 @@ describe("Crypt test", function () {
var crypter = Crypt(passphrase);

it('decrypted crypted data should be the same than original data', function () {
var originalData, encryptedData, dencryptedData;
var originalData, encryptedData, decryptedData;

originalData = {"hello": "world"};
console.log("Original data:", originalData);
encryptedData = crypter.encrypt(originalData);
console.log("Encrypted data:", encryptedData);
dencryptedData = crypter.decrypt(encryptedData);
console.log("Dencrypted data:", dencryptedData);
decryptedData = crypter.decrypt(encryptedData);
console.log("Dencrypted data:", decryptedData);

expect(dencryptedData).toEqual(originalData);
expect(decryptedData).toEqual(originalData);
});
});

0 comments on commit 1e6ffb1

Please sign in to comment.