Skip to content

Commit

Permalink
Add test sections for Advanced, JWTs, and ZKPs.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Jan 13, 2019
1 parent 7f4efa1 commit da58902
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -2,8 +2,7 @@
"name": "vc-test-suite",
"version": "0.3.0",
"description": "Verifiable Credentials Test Suite",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
Expand Down
Expand Up @@ -12,7 +12,7 @@ const iso8601Regex = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9
const should = chai.should();
chai.use(require('chai-as-promised'));

describe('Document', () => {
describe('Basic Documents', () => {
const generatorOptions = {
generator: config.generator,
args: ""
Expand Down
27 changes: 27 additions & 0 deletions test/vc-data-model-1.0/20-advanced.js
@@ -0,0 +1,27 @@
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
const {expect} = chai;
const util = require('./util');

// setup constants
const uriRegex = /\w+:(\/?\/?)[^\s]+/;
const iso8601Regex = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/

// configure chai
const should = chai.should();
chai.use(require('chai-as-promised'));

describe('Advanced Documents', () => {
const generatorOptions = {
generator: config.generator,
args: ""
};

describe('FEATURE', () => {

it.skip('MUST ...', async () => {
});
});

});
22 changes: 22 additions & 0 deletions test/vc-data-model-1.0/50-jwt.js
@@ -0,0 +1,22 @@
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
const {expect} = chai;
const util = require('./util');

// configure chai
const should = chai.should();
chai.use(require('chai-as-promised'));

describe('JWT', () => {
const generatorOptions = {
generator: config.generator,
args: ""
};

describe('FEATURE', () => {

it.skip('MUST ...', async () => {
});
});
});
28 changes: 28 additions & 0 deletions test/vc-data-model-1.0/60-zkp.js
@@ -0,0 +1,28 @@
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
const {expect} = chai;
const util = require('./util');

// setup constants
const uriRegex = /\w+:(\/?\/?)[^\s]+/;
const iso8601Regex = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/

// configure chai
const should = chai.should();
chai.use(require('chai-as-promised'));

describe('Zero-Knowledge Proofs', () => {
const generatorOptions = {
generator: config.generator,
args: ""
};

describe('FEATURE', () => {

it.skip('MUST ...', async () => {
});

});

});

0 comments on commit da58902

Please sign in to comment.