diff options
Diffstat (limited to 'src/node/test')
-rw-r--r-- | src/node/test/metadata_test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node/test/metadata_test.js b/src/node/test/metadata_test.js index 227fa9c994..86383f1bad 100644 --- a/src/node/test/metadata_test.js +++ b/src/node/test/metadata_test.js @@ -135,10 +135,10 @@ describe('Metadata', function() { metadata.remove('key'); assert.deepEqual(metadata.get('key'), []); }); - it('does not normalize keys', function() { + it('Normalizes keys', function() { metadata.add('key', 'value'); metadata.remove('KEY'); - assert.deepEqual(metadata.get('key'), ['value']); + assert.deepEqual(metadata.get('key'), []); }); }); describe('#get', function() { @@ -150,8 +150,8 @@ describe('Metadata', function() { it('gets all values associated with a key', function() { assert.deepEqual(metadata.get('key'), ['value1', 'value2']); }); - it('does not normalize keys', function() { - assert.deepEqual(metadata.get('KEY'), []); + it('Normalizes keys', function() { + assert.deepEqual(metadata.get('KEY'), ['value1', 'value2']); }); it('returns an empty list for non-existent keys', function() { assert.deepEqual(metadata.get('non-existent-key'), []); |