<commit_before>var expect = require('expect.js'),
    sdk = require('../../lib/index.js'),
    Certificate = sdk.Certificate;

describe('Certificate', function () {
    describe('constructor', function () {
        it('should allow creating an empty Certificate', function () {
            var certificate = new Certificate();
            expect(certificate).to.not.eql(undefined);
            expect(certificate._postman_propertyName).to.not.eql('Certificate');
        });
    });

    describe('canApplyTo', function () {
        it('should return false for empty target URLs', function () {
            var certificate = new Certificate({ matches: ['https://google.com/*'] });
            expect(certificate.canApplyTo('')).to.eql(false);
            expect(certificate.canApplyTo(new sdk.Url())).to.eql(false);<commit_msg>test(unit): Added Certificate unit tests :white_check_mark:<commit_after>var expect = require('expect.js'),
    sdk = require('../../lib/index.js'),
    Certificate = sdk.Certificate;

describe('Certificate', function () {
    describe('constructor', function () {
        it('should allow creating an empty Certificate', function () {
            var certificate = new Certificate();
            expect(certificate).to.not.eql(undefined);
            expect(certificate._postman_propertyName).to.not.eql('Certificate');
        });

        it('should correctly identify Certificate instances', function () {
            var certificate = new Certificate();

            expect(Certificate.isCertificate(certificate)).to.be(true);
            expect(Certificate.isCertificate({})).to.be(false);
            expect(Certificate.isCertificate({ _postman_propertyName: 'certificate' })).to.be(false);
        });
    });

    describe('canApplyTo', function () {
        it('should return false for empty target URLs', function () {
            var certificate = new Certificate({ matches: ['https://google.com/*'] });
            expect(certificate.canApplyTo('')).to.eql(false);
            expect(certificate.canApplyTo(new sdk.Url())).to.eql(false);
{'fraction_non_alphanumeric': 0.15503129513721714, 'fraction_numerical': 0.0, 'mean_word_length': 3.050682261208577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7223270', 'n_tokens_mistral': 548, 'n_tokens_neox': 527, 'n_words': 106}