|
|
@ -79,6 +79,7 @@ module.exports.tests.text_parser = function(test, common) { |
|
|
|
text: 'yugolsavia' |
|
|
|
text: 'yugolsavia' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var clean = {}; |
|
|
|
var clean = {}; |
|
|
|
|
|
|
|
clean.parsed_text = 'this should be removed'; |
|
|
|
|
|
|
|
|
|
|
|
var expected_clean = { |
|
|
|
var expected_clean = { |
|
|
|
text: 'yugolsavia' |
|
|
|
text: 'yugolsavia' |
|
|
@ -97,6 +98,7 @@ module.exports.tests.text_parser = function(test, common) { |
|
|
|
text: 'small town' |
|
|
|
text: 'small town' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var clean = {}; |
|
|
|
var clean = {}; |
|
|
|
|
|
|
|
clean.parsed_text = 'this should be removed'; |
|
|
|
|
|
|
|
|
|
|
|
var expected_clean = { |
|
|
|
var expected_clean = { |
|
|
|
text: 'small town' |
|
|
|
text: 'small town' |
|
|
@ -115,6 +117,7 @@ module.exports.tests.text_parser = function(test, common) { |
|
|
|
text: '123 main' |
|
|
|
text: '123 main' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var clean = {}; |
|
|
|
var clean = {}; |
|
|
|
|
|
|
|
clean.parsed_text = 'this should be removed'; |
|
|
|
|
|
|
|
|
|
|
|
var expected_clean = { |
|
|
|
var expected_clean = { |
|
|
|
text: '123 main' |
|
|
|
text: '123 main' |
|
|
@ -133,6 +136,7 @@ module.exports.tests.text_parser = function(test, common) { |
|
|
|
text: 'main 123' |
|
|
|
text: 'main 123' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var clean = {}; |
|
|
|
var clean = {}; |
|
|
|
|
|
|
|
clean.parsed_text = 'this should be removed'; |
|
|
|
|
|
|
|
|
|
|
|
var expected_clean = { |
|
|
|
var expected_clean = { |
|
|
|
text: 'main 123' |
|
|
|
text: 'main 123' |
|
|
@ -151,6 +155,7 @@ module.exports.tests.text_parser = function(test, common) { |
|
|
|
text: 'main particle new york' |
|
|
|
text: 'main particle new york' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var clean = {}; |
|
|
|
var clean = {}; |
|
|
|
|
|
|
|
clean.parsed_text = 'this should be removed'; |
|
|
|
|
|
|
|
|
|
|
|
var expected_clean = { |
|
|
|
var expected_clean = { |
|
|
|
text: 'main particle new york' |
|
|
|
text: 'main particle new york' |
|
|
|