Skip to content

Commit

Permalink
update tests for stardog v10
Browse files Browse the repository at this point in the history
  • Loading branch information
anneeb committed Apr 22, 2024
1 parent 347dbdd commit 9111506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/getServerProperties.spec.js
Expand Up @@ -10,12 +10,12 @@ describe('server.properties()', () => {
conn = ConnectionFactory();
});

it('should retrieve a JS object containing server properties', () =>
it('does not retrieve server properties without explicit names', () =>
server.properties(conn).then(res => {
expect(res.status).toBe(200);
expect(res.headers.get('Content-Type')).toBe('application/json');
const bodyKeys = Object.keys(res.body);
expect(bodyKeys.length).toBeGreaterThan(0);
expect(bodyKeys.length).toBe(0);
}));

it('should only include the specified properties when names param is set', () =>
Expand Down
6 changes: 6 additions & 0 deletions test/setup-database.js
Expand Up @@ -19,6 +19,12 @@ exports.seedDatabase = (database, options = {}, addlFiles = []) => () => {
index: {
type: 'disk',
},
// override new default value in v10.0.0+ since tests were mostly written before then
reasoning: {
schema: {
graphs: 'tag:stardog:api:context:local',
},
},
}),
{
// Load everything into the DB
Expand Down

0 comments on commit 9111506

Please sign in to comment.