Skip to content

Commit

Permalink
improvement: added not like/contains filters
Browse files Browse the repository at this point in the history
  • Loading branch information
emajo authored May 27, 2024
1 parent 8af7401 commit 062143b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/filter/Operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class Operator {

/**
* Like operator.
* @member {String} GTE
* @member {String} LIKE
*/
static LIKE = 'like'

Expand All @@ -63,6 +63,18 @@ export default class Operator {
*/
static CONTAINS = 'contains'

/**
* Not Like operator.
* @member {String} NOT_LIKE
*/
static NOT_LIKE = 'not like'

/**
* Not Contains operator.
* @member {String} NOT_CONTAINS
*/
static NOT_CONTAINS = 'not contains'

/**
* Starts With operator.
* @member {String} STARTS_WITH
Expand Down
2 changes: 2 additions & 0 deletions test/filter/Operator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
expect(fattureInCloudSdk.Operator.IS_NOT).to.equal('is not')
expect(fattureInCloudSdk.Operator.LIKE).to.equal('like')
expect(fattureInCloudSdk.Operator.CONTAINS).to.equal('contains')
expect(fattureInCloudSdk.Operator.NOT_LIKE).to.equal('not like')
expect(fattureInCloudSdk.Operator.NOT_CONTAINS).to.equal('not contains')
expect(fattureInCloudSdk.Operator.STARTS_WITH).to.equal('starts with')
expect(fattureInCloudSdk.Operator.ENDS_WITH).to.equal('ends with')
})
Expand Down

0 comments on commit 062143b

Please sign in to comment.