Tests for stripHTMLTags
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing stripHTMLTags', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof stripHTMLTags === 'function', 'stripHTMLTags is a Function');
|
||||
t.equals(stripHTMLTags('<p><em>lorem</em> <strong>ipsum</strong></p><img /><br>'), 'lorem ipsum', 'Removes HTML tags');
|
||||
//t.deepEqual(stripHTMLTags(args..), 'Expected');
|
||||
//t.equal(stripHTMLTags(args..), 'Expected');
|
||||
//t.false(stripHTMLTags(args..), 'Expected');
|
||||
//t.throws(stripHTMLTags(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Test log for: Sat Feb 03 2018 12:19:55 GMT+0200 (GTB Standard Time)
|
||||
Test log for: Sat Feb 03 2018 12:21:49 GMT+0200 (GTB Standard Time)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
|
||||
> tape test/**/*.test.js | tap-spec
|
||||
@ -1295,6 +1295,7 @@ Test log for: Sat Feb 03 2018 12:19:55 GMT+0200 (GTB Standard Time)
|
||||
Testing stripHTMLTags
|
||||
|
||||
√ stripHTMLTags is a Function
|
||||
√ Removes HTML tags
|
||||
|
||||
Testing sum
|
||||
|
||||
@ -1641,8 +1642,8 @@ Test log for: Sat Feb 03 2018 12:19:55 GMT+0200 (GTB Standard Time)
|
||||
√ Works with multiple promises
|
||||
|
||||
|
||||
total: 745
|
||||
passing: 745
|
||||
total: 746
|
||||
passing: 746
|
||||
duration: 2.4s
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user