Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to babelrc #68

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"presets": [
"@babel/preset-env"
[
"@babel/preset-env",
{
"targets": {
"node": "10"
}
}]
],
"sourceMaps": true,
"retainLines": true
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Don't have an Agility CMS instance? Sign up for [Free (forever)](https://account
- Query a content list using a filter syntax
- Get the details of a media gallery
- Keep track of syncing content to your app
- Optional in-memory caching

## Getting Started
In order to use this sdk, you'll need to install the script and you'll also need to authenticate your requests.
Expand Down
6 changes: 2 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions test/getApi.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,6 @@ describe('getApi:', function() {
done();
});

it('should throw an error if caching maxAge is passed-in and is not a number', function(done) {
expect(function() {
var api = agility.getApi({
guid: 'some-guid',
apiKey: 'some-access-token',
caching: {
maxAge: 'ten thousand miliseconds'
}
});
assert.strictEqual(typeof(api), "object");
done();
}).to.throw( TypeError );
done();
});


it('should throw an error if baseUrl is passed-in and is does not start with "https"', function(done) {
expect(function() {
Expand Down