Browse Source

update directive test file location

Evan You 10 years ago
parent
commit
cb36567622

+ 0 - 0
test/unit/specs/directives/public/component_spec.js → test/unit/specs/directives/internal/component_spec.js


+ 2 - 2
test/unit/specs/directives/internal/attr_spec.js → test/unit/specs/directives/public/bind_spec.js

@@ -1,8 +1,8 @@
 var _ = require('../../../../../src/util')
-var def = require('../../../../../src/directives/internal/attr')
+var def = require('../../../../../src/directives/public/bind')
 
 if (_.inBrowser) {
-  describe('bind-attr', function () {
+  describe('v-bind', function () {
 
     var el, dir
     beforeEach(function () {

+ 2 - 2
test/unit/specs/directives/internal/class_spec.js → test/unit/specs/directives/public/class_spec.js

@@ -1,8 +1,8 @@
 var _ = require('../../../../../src/util')
-var def = require('../../../../../src/directives/internal/class')
+var def = require('../../../../../src/directives/public/class')
 
 if (_.inBrowser) {
-  describe('bind-class', function () {
+  describe(':class', function () {
 
     var el
     beforeEach(function () {

+ 0 - 0
test/unit/specs/directives/internal/on_spec.js → test/unit/specs/directives/public/on_spec.js


+ 3 - 3
test/unit/specs/directives/internal/style_spec.js → test/unit/specs/directives/public/style_spec.js

@@ -1,5 +1,5 @@
 var _ = require('../../../../../src/util')
-var def = require('../../../../../src/directives/internal/style')
+var def = require('../../../../../src/directives/public/style')
 var Vue = require('../../../../../src/vue')
 
 function checkPrefixedProp (prop) {
@@ -18,7 +18,7 @@ function checkPrefixedProp (prop) {
 }
 
 if (_.inBrowser) {
-  describe('bind-style', function () {
+  describe(':style', function () {
 
     var el, dir
     beforeEach(function () {
@@ -105,7 +105,7 @@ if (_.inBrowser) {
     })
 
     it('updates object deep', function (done) {
-      el.setAttribute('bind-style', 'divStyling')
+      el.setAttribute(':style', 'divStyling')
       var vm = new Vue({
         el: el,
         data: {divStyling: { display: 'none'}}