Basic testing in place
parent
8efcc70eef
commit
f3aebb2a16
@ -1,5 +1,6 @@
|
||||
export default {
|
||||
entry: 'index.js',
|
||||
// entry: 'index.js',
|
||||
entry: 'src/index.js'
|
||||
format: 'cjs',
|
||||
dest: 'bundle.js' // equivalent to --output
|
||||
dest: 'dist/bundle.js' // equivalent to --output
|
||||
};
|
||||
|
@ -0,0 +1,7 @@
|
||||
// Given a node, determine if it's article-like enough to return
|
||||
export function nodeIsSufficient(node) {
|
||||
}
|
||||
// def node_is_sufficient(self, node):
|
||||
// return (isinstance(node, lxml.html.HtmlElement) and
|
||||
// len(inner_text(node)) >= 100)
|
||||
//
|
@ -0,0 +1,9 @@
|
||||
import assert from 'assert'
|
||||
|
||||
describe('Utils', () => {
|
||||
describe('nodeIsSufficient(node)', () => {
|
||||
it("should return true if text length > 100 chars", () => {
|
||||
assert.equal(true, true)
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue