<commit_before>/* jshint mocha: true */

'use strict';

var abac = require('./lib/stackbin');

describe('Stackbin', function () {

    var ac = abac();

    it('Basic User check', function (done) {

        ac
            .can('user:get', {
                user_id: '00000098038114680832'
            })
            .then(function () {
                done();
            })
            .catch(done);
    });

    it('Basic User check REJECT', function (done) {

        ac
            .can('user:get', {
                user_id: '00030164495926034432'
            })
            .then(function () {
                throw new Error('This test should disallow permission');
            })
            .catch(function (err) {
                done();
            });
    });

});<commit_msg>standards<commit_after>/* jshint mocha: true */

'use strict';

var abac = require('./lib/stackbin');

describe('Stackbin', function () {

    var ac = abac();

    it('Basic User check', function (done) {

        ac
            .can('user:get', {
                user_id: '00000098038114680832'
            })
            .then(function () {
                done();
            })
            .catch(done);
    });

    it('Basic User check REJECT', function (done) {

        ac
            .can('user:get', {
                user_id: '00030164495926034432'
            })
            .then(function () {
                throw new Error('This test should disallow permission');
            })
            .catch(function () {
                done();
            });
    });

});
{'fraction_non_alphanumeric': 0.14659018483110262, 'fraction_numerical': 0.05098789037603569, 'mean_word_length': 1.3328380386329866, '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': '2308735', 'n_tokens_mistral': 506, 'n_tokens_neox': 433, 'n_words': 93}