<commit_before>const tap = require('tap');
const fastly = require('../lib/fastly.js');
const fastly_api_key =  process.env.FASTLY_API_KEY || '';
const content_url =  process.env.CONTENT_URL || '';

var flib = new fastly(fastly_api_key);

// --> .softpurge()
tap.test('.softpurge()', function(t) {
	t.type(flib.softpurge, 'function', 'return function')
	t.end();
});
tap.test('.softpurge.then()', function(t) {
	flib.softpurge(content_url)
		.then((res)=>{
			t.type(res, 'object', 'return object');
			t.end();
		})
		.catch((err)=>{
			t.fail(err);
			t.end();
		})
});<commit_msg>Update softpurge.js<commit_after>const tap = require('tap');
const fastly = require('../lib/fastly.js');
const fastly_api_key =  process.env.FASTLY_API_KEY || '';
const content_url =  process.env.CONTENT_URL || '';

var flib = new fastly(fastly_api_key);

tap.test('.softpurge()', function(t) {
	t.type(flib.softpurge, 'function', 'return function');
	t.end();
});
{'fraction_non_alphanumeric': 0.2156448202959831, 'fraction_numerical': 0.0, 'mean_word_length': 4.774390243902439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3347048', 'n_tokens_mistral': 384, 'n_tokens_neox': 364, 'n_words': 60}