123456789101112131415161718192021222324252627282930 |
- var Test = require('../../support/convert-runner');
- describe('Converter ::', function() {
- describe('FIND LIKE statements', function() {
- it('should generate a query', function() {
- Test({
- criteria: {
- model: 'user',
- method: 'find',
- criteria: {
- where: {
- firstName: {
- like: '%foo%'
- }
- }
- }
- },
- query: {
- select: [],
- from: 'user',
- where: {
- firstName: {
- like: '%foo%'
- }
- }
- }
- });
- });
- });
- });
|