Download node_modules/bad-words/test/replaceWord.js from Thrisha04/Chat: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/Thrisha04/Chat/resolve/main/node_modules/bad-words/test/replaceWord.js
- Command line
-
hf download hf://Thrisha04/Chat/node_modules/bad-words/test/replaceWord.js
-
curl -L -o replaceWord.js https://huggingface.co/Thrisha04/Chat/resolve/main/node_modules/bad-words/test/replaceWord.js
329 Bytes
| require('assert'); | |
| var Filter = require('../lib/badwords.js'), | |
| filter = new Filter(), | |
| assert = require('better-assert'); | |
| describe('filter', function(){ | |
| describe('replaceWord',function(){ | |
| it("Should replace a bad word with asterisks (******)",function(){ | |
| assert(filter.replaceWord("ash0le") == '******'); | |
| }); | |
| }); | |
| }); |