Skip to content

Commit

Permalink
import from @sap/cds instead of @sap/cds/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
danjoa committed May 14, 2024
1 parent aaa94e2 commit c6b88f6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bookshop/srv/admin-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

module.exports = class AdminService extends cds.ApplicationService { init(){
this.before ('NEW','Authors', genid)
Expand Down
2 changes: 1 addition & 1 deletion loggers/srv/loggers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require ('@sap/cds/lib')
const cds = require ('@sap/cds')
const LOG = cds.log('cds.log')

module.exports = class LogService extends cds.Service {
Expand Down
2 changes: 1 addition & 1 deletion test/cds.ql.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')
const { expect } = cds.test

describe('cds.ql → cqn', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/consuming-services.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Consuming Services locally', () => {

Expand Down
2 changes: 1 addition & 1 deletion test/custom-handlers.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Custom Handlers', () => {

Expand Down
2 changes: 1 addition & 1 deletion test/fiori.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Fiori APIs - v2', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/hello-world.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Hello world!', () => {

Expand Down
2 changes: 1 addition & 1 deletion test/hierarchical-data.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')
const { expect } = cds.test.in(__dirname,'..')

describe('cap/samples - Hierarchical Data', ()=>{
Expand Down
2 changes: 1 addition & 1 deletion test/localized-data/services.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Localized Data', () => {

Expand Down
2 changes: 1 addition & 1 deletion test/messaging.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Messaging', ()=>{

Expand Down
2 changes: 1 addition & 1 deletion test/odata.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')

describe('cap/samples - Bookshop APIs', () => {
const { GET, expect, axios } = cds.test ('@capire/bookshop')
Expand Down

0 comments on commit c6b88f6

Please sign in to comment.