1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- var Test = require('../../support/convert-runner');
- describe('Converter :: ', function() {
- describe('Find Where Not In :: ', function() {
- it('should generate a find query', function() {
- Test({
- criteria: {
- model: 'user',
- method: 'find',
- criteria: {
- where: {
- and: [
- {
- firstName: 'Test'
- },
- {
- age: {
- nin: [40, 20, 10]
- }
- }
- ]
- }
- }
- },
- query: {
- select: [],
- from: 'user',
- where: {
- and: [
- {
- firstName: 'Test'
- },
- {
- age: {
- nin: [40, 20, 10]
- }
- }
- ]
- }
- }
- });
- });
- it('should generate a find query when the NOT is a legacy value', function() {
- Test({
- criteria: {
- model: 'user',
- method: 'find',
- criteria: {
- where: {
- and: [
- {
- firstName: 'Test'
- },
- {
- age: {
- nin: [40, 20, 10]
- }
- }
- ]
- }
- }
- },
- query: {
- select: [],
- from: 'user',
- where: {
- and: [
- {
- firstName: 'Test'
- },
- {
- age: {
- nin: [40, 20, 10]
- }
- }
- ]
- }
- }
- });
- });
- });
- });
|