<commit_before>import {AUSkeyProvider} from '../providers/auskey.provider';

/* tslint:disable:max-func-body-length */
describe('RAM AUSkey Provider', () => {

    beforeEach(async (done) => {
        done();
    });

    it('gets mock implementation', async (done) => {
        try {
            const provider = AUSkeyProvider;
            expect(provider).not.toBeNull();
            //expect(provider).toBe(MockAUSkeyProvider);
            done();
        } catch (e) {
            fail('Because ' + e);
            done();
        }
    });

    it('lists devices by ABN', async (done) => {
        try {
            const auskeys = AUSkeyProvider.listDevicesByABN('10000000001');
            expect(auskeys).not.toBeNull();
            expect(auskeys.length).toBe(3);
            done();
        } catch (e) {
            fail('Because ' + e);
            done();<commit_msg>RAM-4 Added AUSkey provider listDevicesByABN()<commit_after>import {AUSkeyProvider} from '../providers/auskey.provider';

/* tslint:disable:max-func-body-length */
describe('RAM AUSkey Provider', () => {

    beforeEach(async (done) => {
        done();
    });

    it('gets mock implementation', async (done) => {
        try {
            const provider = AUSkeyProvider;
            expect(provider).not.toBeNull();
            done();
        } catch (e) {
            fail('Because ' + e);
            done();
        }
    });

    it('lists devices by ABN', async (done) => {
        try {
            const auskeys = AUSkeyProvider.listDevicesByABN('10000000001');
            expect(auskeys).not.toBeNull();
            expect(auskeys.length).toBe(3);
            done();
        } catch (e) {
            fail('Because ' + e);
            done();
{'fraction_non_alphanumeric': 0.15477560414269276, 'fraction_numerical': 0.014384349827387802, 'mean_word_length': 1.8791390728476822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '927439', 'n_tokens_mistral': 528, 'n_tokens_neox': 497, 'n_words': 94}