<commit_before>import { chai, assert } from 'meteor/practicalmeteor:chai'
import { Meteor } from 'meteor/meteor'
import { callWithPromise, LocalizableCollection } from '/imports/api/utilities' // import helpful utils
import { Mongo } from 'meteor/mongo'

let localCurrencies = new LocalizableCollection('currenciesTest', 'fetchCurrencies')

describe('Localizable collections', function() {
	it('Always calls super while running on the server', function() {
        let id = localCurrencies.insert({
            currencyName: `Test`,
            currencySymbol: `TST`,
            createdAt: new Date().getTime(),
            owner: 'randId'
        })

        assert.equal(localCurrencies.findOne({
            _id: id
        }).currencyName, 'Test')

        assert.equal(localCurrencies.find({}).fetch().length, 1)
  	})
})<commit_msg>problem: scripts broken with new landing page<commit_after>import { chai, assert, expect } from 'meteor/practicalmeteor:chai'
import { Meteor } from 'meteor/meteor'
import { callWithPromise, LocalizableCollection } from '/imports/api/utilities' // import helpful utils
import { Mongo } from 'meteor/mongo'


let localCurrencies = new LocalizableCollection('currenciesTest', 'fetchCurrencies')


describe('Localizable collections', function() {
	it('Always calls super while running on the server', function() {
        let id = localCurrencies.insert({
            currencyName: `Test`,
            currencySymbol: `TST`,
            createdAt: new Date().getTime(),
            owner: 'randId'
        })

        assert.equal(localCurrencies.findOne({
            _id: id
        }).currencyName, 'Test');
        
        expect(localCurrencies.find({}).fetch().length).to.be.at.least(1);
  	})
})
{'fraction_non_alphanumeric': 0.12650948821161587, 'fraction_numerical': 0.0011500862564692352, 'mean_word_length': 3.2028985507246377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1356338', 'n_tokens_mistral': 520, 'n_tokens_neox': 481, 'n_words': 120}