-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: cloudfunc: get rid of mock-require
- Loading branch information
1 parent
6e99c7e
commit fcce26d
Showing
2 changed files
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
'use strict'; | ||
|
||
const test = require('supertape'); | ||
const entity = require('../../common/entity'); | ||
const entity = require('./entity'); | ||
|
||
test('cloudcmd: entity: encode', (t) => { | ||
const result = entity.encode('<hello> '); | ||
const expected = '<hello> '; | ||
|
||
t.equal(result, expected, 'should encode entity'); | ||
t.end(); | ||
}); | ||
|
||
test('cloudcmd: entity: decode', (t) => { | ||
const result = entity.decode('<hello> '); | ||
const expected = '<hello> '; | ||
|
||
t.equal(result, expected, 'should decode entity'); | ||
t.end(); | ||
}); | ||
|
||
test('cloudcmd: entity: encode quote', (t) => { | ||
const result = entity.encode('"hello"'); | ||
const expected = '"hello"'; | ||
|
||
t.equal(result, expected, 'should encode entity'); | ||
t.end(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters