'use strict';

const core = require('..');
const minimal = require('../minimal');
const full = require('../full');

describe('Checking for the presence of main APIs', function () {

    const minimalAPI = [
        'Molecule',
        'SDFileParser',
        'SSSearcher',
        'SSSearcherWithIndex',
        'Util',
        'version'
    ];

    const coreAPI = [
        'MoleculeProperties',
        'DruglikenessPredictor',
        'DrugScoreCalculator',
        'ToxicityPredictor'
    ];

    const fullAPI = [
        'StructureView',
        'StructureEditor'
    ];

    it('minimal', function () {
        minimal.should.have.properties(minimalAPI);
        minimal.should.not.have.properties(coreAPI);
        minimal.should.not.have.properties(fullAPI);
    });

    it('core', function () {
        core.should.equal(require('..'));
        core.should.have.properties(minimalAPI);
        core.should.have.properties(coreAPI);
        core.should.not.have.properties(fullAPI)
    });

    it('full', function () {
        full.should.have.properties(minimalAPI);
        full.should.have.properties(coreAPI);
        full.should.have.properties(fullAPI)
    })

});

@@ -107,16 +107,75 @@
 /full');
+%0Aconst pretty = require('../dist/openchemlib-full.pretty');
 %0A%0Adescri
@@ -1083,36 +1083,81 @@
 on () %7B%0A        
+%5B
 full
+, pretty%5D.forEach((lib) =%3E %7B%0A            lib
 .should.have.pro
@@ -1177,36 +1177,39 @@
 alAPI);%0A        
+   
-full
+ lib
 .should.have.pro
@@ -1234,20 +1234,23 @@
         
+   
-full
+ lib
 .should.
@@ -1270,24 +1270,36 @@
 es(fullAPI)%0A
+        %7D);%0A
     %7D)%0A%0A%7D);%0A

test that pretty is full