Skip to content

Commit

Permalink
Allow any version of the @authress/login library.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 23, 2024
1 parent e5b8750 commit 385c763
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 624 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"mode": "production",
"dependencies": {
"@authress/login": "^2",
"@authress/login": "*",
"base64url": "^3.0.1",
"bootstrap": "4",
"buffer": "^6.0.3",
Expand All @@ -62,7 +62,7 @@
"start": "webpack serve --mode=development --port=8080",
"serve": "serve -p 8080 mocks",
"lint": "eslint --ext .js src",
"test": "ava tests/**/*.test.js"
"test": "mocha tests/**/*.test.js"
},
"devDependencies": {
"@babel/cli": "^7.13.14",
Expand All @@ -72,7 +72,6 @@
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-env": "^7.13.12",
"ava": "^4.3.3",
"babel-loader": "^8.2.2",
"babel-plugin-template-html-minifier": "^4.1.0",
"chai": "^4.2.0",
Expand Down
8 changes: 8 additions & 0 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"../.eslintrc"
],
"rules": {
"no-loop-func": "off"
}
}
17 changes: 17 additions & 0 deletions tests/package.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { describe, it } from 'mocha';
import path from 'path';
import { expect } from 'chai';
import fs from 'fs-extra';
import * as url from 'url';

// eslint-disable-next-line no-underscore-dangle
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

describe('package.json', () => {
describe('Syntax', () => {
it('Should be valid node', async () => {
const packageJson = await fs.readJSON(path.join(__dirname, '../package.json'));
expect(packageJson.dependencies['@authress/login']).to.eql('*');
});
});
});
Loading

0 comments on commit 385c763

Please sign in to comment.