Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

var Ajv = require( 'ajv' );
var schema = require( './../lib' );
var pkg = require( './../package.json' );

var ajv = new Ajv();

var bool = ajv.validate( schema(), pkg );
console.log( bool );

var errs = ajv.errors;
console.log( errs );
<!-- lint disable first-heading-level expected-html-sections -->
<!-- Section to include announcements. If section is included, add a horizontal rule *after* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="announcement">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore a runnable JavaScript example

This file is still a .js example under the package's ./examples directory, but the replacement content is HTML/Markdown markup. When the example is executed or even syntax-checked with Node, it fails with SyntaxError: Unexpected token '<' at the <section> tag, so the schema validation example no longer runs and example checks for this package will fail.

Useful? React with 👍 / 👎.

<!-- Your announcement content here -->
</section>
<!-- /.announcement -->
Loading