open-consul/ui-v2/blueprints/repository-test/index.js

29 lines
643 B
JavaScript
Raw Normal View History

/*eslint node/no-extraneous-require: "off"*/
'use strict';
const useTestFrameworkDetector = require('@ember-data/-build-infra/src/utilities/test-framework-detector');
const path = require('path');
module.exports = useTestFrameworkDetector({
description: 'Generates a Consul HTTP ember-data serializer unit and integration tests',
root: __dirname,
fileMapTokens(options) {
return {
__root__() {
return 'tests';
},
__path__() {
return '';
}
};
},
locals(options) {
return {
screamingSnakeCaseModuleName: options.entity.name.replace('-', '_').toUpperCase()
};
},
});